com.sshtools.j2ssh.transport.publickey
Class SshKeyPairFactory
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory
public class SshKeyPairFactory
- extends java.lang.Object
- Version:
- $Revision: 1.26 $
- Author:
- $author$
Constructor Summary |
protected |
SshKeyPairFactory()
Creates a new SshKeyPairFactory object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SshKeyPairFactory
protected SshKeyPairFactory()
- Creates a new SshKeyPairFactory object.
initialize
public static void initialize()
getDefaultPublicKey
public static java.lang.String getDefaultPublicKey()
- Returns:
getSupportedKeys
public static java.util.List getSupportedKeys()
- Returns:
newInstance
public static SshKeyPair newInstance(java.lang.String methodName)
throws AlgorithmNotSupportedException
- Parameters:
methodName
-
- Returns:
-
- Throws:
AlgorithmNotSupportedException
supportsKey
public static boolean supportsKey(java.lang.String algorithm)
- 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
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.