maspack.fileutil.vfs
Class SimpleIdRepoFactory
java.lang.Object
maspack.fileutil.vfs.SimpleIdRepoFactory
- All Implemented Interfaces:
- org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory
public class SimpleIdRepoFactory
- extends java.lang.Object
- implements org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory
An "IdentityFactor" that stores a set of private keys to use for
authentication.
- Author:
- "Antonio Sanchez" Creation date: 24 Oct 2012
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIdRepoFactory
public SimpleIdRepoFactory()
addIdentity
public void addIdentity(com.jcraft.jsch.Identity id)
byteErase
public static void byteErase(byte[] array)
decryptIdentity
public static boolean decryptIdentity(com.jcraft.jsch.Identity id,
java.lang.String passphrase)
decryptIdentity
public static boolean decryptIdentity(com.jcraft.jsch.Identity id,
byte[] passphrase)
createIdentity
public static IdentityFile createIdentity(byte[] blob)
throws com.jcraft.jsch.JSchException
- Throws:
com.jcraft.jsch.JSchException
createIdentity
public static IdentityFile createIdentity(java.lang.String fileName)
throws com.jcraft.jsch.JSchException
- Throws:
com.jcraft.jsch.JSchException
createIdentity
public static IdentityFile createIdentity(java.io.File file)
throws com.jcraft.jsch.JSchException
- Throws:
com.jcraft.jsch.JSchException
setIdentityRepository
public void setIdentityRepository(SimpleIdentityRepository repo)
getIdentityRepository
public com.jcraft.jsch.IdentityRepository getIdentityRepository()
create
public com.jcraft.jsch.IdentityRepository create(com.jcraft.jsch.JSch jsch)
- Specified by:
create
in interface org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory