com.sshtools.j2ssh.transport.publickey

Class SshKeyPairFactory


public class SshKeyPairFactory
extends java.lang.Object

Version:
$Revision: 1.26 $
Author:
$author$

Constructor Summary

SshKeyPairFactory()
Creates a new SshKeyPairFactory object.

Method Summary

static SshPrivateKey
decodePrivateKey(byte[] encoded)
static SshPublicKey
decodePublicKey(byte[] encoded)
static String
getDefaultPublicKey()
static List
getSupportedKeys()
static void
initialize()
static SshKeyPair
newInstance(String methodName)
static boolean
supportsKey(String algorithm)

Constructor Details

SshKeyPairFactory

protected SshKeyPairFactory()
Creates a new SshKeyPairFactory object.

Method Details

decodePrivateKey

public static SshPrivateKey decodePrivateKey(byte[] encoded)
            throws InvalidSshKeyException,
                   AlgorithmNotSupportedException
Parameters:
encoded -
Returns:

decodePublicKey

public static SshPublicKey decodePublicKey(byte[] encoded)
            throws InvalidSshKeyException,
                   AlgorithmNotSupportedException
Parameters:
encoded -
Returns:

getDefaultPublicKey

public static String getDefaultPublicKey()
Returns:

getSupportedKeys

public static List getSupportedKeys()
Returns:

initialize

public static void initialize()

newInstance

public static SshKeyPair newInstance(String methodName)
            throws AlgorithmNotSupportedException
Parameters:
methodName -
Returns:

supportsKey

public static boolean supportsKey(String algorithm)
Parameters:
algorithm -
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.