Interface IdentityProvider
-
public interface IdentityProviderEnables to add an identity to a java secure channelJSch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIdentityProvider.BuilderBuilder forIdentityProvider
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddIdentityTo(com.jcraft.jsch.JSch jsch)Adds the identity represented by the current instance to java secure channelJSch.static IdentityProvider.Builderbuilder()static IdentityProviderfromPathToPrivateKey(String path)
-
-
-
Method Detail
-
builder
static IdentityProvider.Builder builder()
- Returns:
- builder for
IdentityProvider.Builder
-
fromPathToPrivateKey
static IdentityProvider fromPathToPrivateKey(String path)
- Parameters:
path- path to file containing private key- Returns:
- IdentityProvider using private key from the specified file
-
addIdentityTo
void addIdentityTo(com.jcraft.jsch.JSch jsch) throws com.jcraft.jsch.JSchExceptionAdds the identity represented by the current instance to java secure channelJSch.- Parameters:
jsch- java secure channelJSchto add identity to- Throws:
com.jcraft.jsch.JSchException- if adding identity fails.
-
-