Class SshKeyPairFactory
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory
- Version:
- $Revision: 1.26 $
- Author:
- $author$
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new SshKeyPairFactory object. -
Method Summary
Modifier and TypeMethodDescriptionstatic SshPrivateKeydecodePrivateKey(byte[] encoded) static SshPublicKeydecodePublicKey(byte[] encoded) static Stringstatic Liststatic voidstatic SshKeyPairnewInstance(String methodName) static booleansupportsKey(String algorithm)
-
Constructor Details
-
SshKeyPairFactory
protected SshKeyPairFactory()Creates a new SshKeyPairFactory object.
-
-
Method Details
-
initialize
public static void initialize() -
getDefaultPublicKey
- Returns:
-
getSupportedKeys
- Returns:
-
newInstance
- Parameters:
methodName-- Returns:
- Throws:
AlgorithmNotSupportedException
-
supportsKey
- Parameters:
algorithm-- Returns:
-
decodePrivateKey
public static SshPrivateKey decodePrivateKey(byte[] encoded) throws InvalidSshKeyException, AlgorithmNotSupportedException - Parameters:
encoded-- Returns:
- Throws:
InvalidSshKeyExceptionAlgorithmNotSupportedException
-
decodePublicKey
public static SshPublicKey decodePublicKey(byte[] encoded) throws InvalidSshKeyException, AlgorithmNotSupportedException - Parameters:
encoded-- Returns:
- Throws:
InvalidSshKeyExceptionAlgorithmNotSupportedException
-