com.sshtools.j2ssh.transport.publickey
Class SshPublicKeyFactory

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.publickey.SshPublicKeyFactory

public class SshPublicKeyFactory
extends java.lang.Object

This factory object creates instances of SshPublicKey objects. Furhter public key mechanisms can be configured by placing an entry in the SSH API configuration file ssh.xml. The method names must follow the extensibility naming convention as described in the SSH protocol specification (i.e algorithm@company.com).

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )

Field Summary
static java.lang.String SSH_DSS
          The ssh-dss public key mechanism
 
Constructor Summary
protected SshPublicKeyFactory()
          Constructor for the SshPublicKeyFactory object
 
Method Summary
static java.lang.String getDefaultPublicKey()
          Gets the default public key mechanism
static java.util.List getSupportedPublicKeys()
          Gets the supported public key mechanisms
static SshPublicKey newInstance(java.lang.String methodName)
          Creates a new instance of the public key method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_DSS

public static final java.lang.String SSH_DSS
The ssh-dss public key mechanism

See Also:
Constant Field Values
Constructor Detail

SshPublicKeyFactory

protected SshPublicKeyFactory()
Constructor for the SshPublicKeyFactory object

Method Detail

getDefaultPublicKey

public static java.lang.String getDefaultPublicKey()
Gets the default public key mechanism

Returns:

getSupportedPublicKeys

public static java.util.List getSupportedPublicKeys()
Gets the supported public key mechanisms

Returns:
The supported mechanisms

newInstance

public static SshPublicKey newInstance(java.lang.String methodName)
                                throws AlgorithmNotSupportedException
Creates a new instance of the public key method

Parameters:
methodName - Description of the Parameter
Returns:
The new instance
Throws:
AlgorithmNotSupportedException - Thrown if the method is not supported


Copyright © 2002 Sshtools.com. All Rights Reserved.