Class SshKeyPairFactory
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory
- Version:
- $Revision: 1.26 $
- Author:
- $author$
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new SshKeyPairFactory object. -
Method Summary
Modifier and TypeMethodDescriptionstatic SshPrivateKey
decodePrivateKey
(byte[] encoded) static SshPublicKey
decodePublicKey
(byte[] encoded) static String
static List
static void
static SshKeyPair
newInstance
(String methodName) static boolean
supportsKey
(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:
InvalidSshKeyException
AlgorithmNotSupportedException
-
decodePublicKey
public static SshPublicKey decodePublicKey(byte[] encoded) throws InvalidSshKeyException, AlgorithmNotSupportedException - Parameters:
encoded
-- Returns:
- Throws:
InvalidSshKeyException
AlgorithmNotSupportedException
-