public class SimpleIdRepoFactory
extends java.lang.Object
implements org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory
| Constructor and Description |
|---|
SimpleIdRepoFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(com.jcraft.jsch.Identity id) |
static void |
byteErase(byte[] array) |
com.jcraft.jsch.IdentityRepository |
create(com.jcraft.jsch.JSch jsch) |
static IdentityFile |
createIdentity(byte[] blob) |
static IdentityFile |
createIdentity(java.io.File file) |
static IdentityFile |
createIdentity(java.lang.String fileName) |
static boolean |
decryptIdentity(com.jcraft.jsch.Identity id,
byte[] passphrase) |
static boolean |
decryptIdentity(com.jcraft.jsch.Identity id,
java.lang.String passphrase) |
com.jcraft.jsch.IdentityRepository |
getIdentityRepository() |
void |
setIdentityRepository(SimpleIdentityRepository repo) |
public void addIdentity(com.jcraft.jsch.Identity id)
public static void byteErase(byte[] array)
public static boolean decryptIdentity(com.jcraft.jsch.Identity id,
java.lang.String passphrase)
public static boolean decryptIdentity(com.jcraft.jsch.Identity id,
byte[] passphrase)
public static IdentityFile createIdentity(byte[] blob) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic static IdentityFile createIdentity(java.lang.String fileName) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic static IdentityFile createIdentity(java.io.File file) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic void setIdentityRepository(SimpleIdentityRepository repo)
public com.jcraft.jsch.IdentityRepository getIdentityRepository()
public com.jcraft.jsch.IdentityRepository create(com.jcraft.jsch.JSch jsch)
create in interface org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory