public class SshKeyPairFactory
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SshKeyPairFactory()
Creates a new SshKeyPairFactory object.
|
Modifier and Type | Method and Description |
---|---|
static SshPrivateKey |
decodePrivateKey(byte[] encoded) |
static SshPublicKey |
decodePublicKey(byte[] encoded) |
static java.lang.String |
getDefaultPublicKey() |
static java.util.List |
getSupportedKeys() |
static void |
initialize() |
static SshKeyPair |
newInstance(java.lang.String methodName) |
static boolean |
supportsKey(java.lang.String algorithm) |
protected SshKeyPairFactory()
public static void initialize()
public static java.lang.String getDefaultPublicKey()
public static java.util.List getSupportedKeys()
public static SshKeyPair newInstance(java.lang.String methodName) throws AlgorithmNotSupportedException
methodName
- AlgorithmNotSupportedException
public static boolean supportsKey(java.lang.String algorithm)
algorithm
- public static SshPrivateKey decodePrivateKey(byte[] encoded) throws InvalidSshKeyException, AlgorithmNotSupportedException
encoded
- InvalidSshKeyException
AlgorithmNotSupportedException
public static SshPublicKey decodePublicKey(byte[] encoded) throws InvalidSshKeyException, AlgorithmNotSupportedException
encoded
- InvalidSshKeyException
AlgorithmNotSupportedException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.