com.sshtools.j2ssh.authentication
Class SshAuthenticationFactory

java.lang.Object
  |
  +--com.sshtools.j2ssh.authentication.SshAuthenticationFactory

public class SshAuthenticationFactory
extends java.lang.Object

Factory object to create instances of SSH Authentication objects. Additional authentication methods can be defined in the API configuration file ssh.xml.

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

Field Summary
static java.lang.String AUTH_PASSWORD
          The Password authentication method name
 
Constructor Summary
protected SshAuthenticationFactory()
          Constructor for SshAuthenticationFactory
 
Method Summary
static java.util.List getSupportedMethods()
          Gets the supported authentication methods
static SshAuthentication newInstance(java.lang.String methodName)
           Creates a new instance of the SshAuthentication object which implements methodName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_PASSWORD

public static final java.lang.String AUTH_PASSWORD
The Password authentication method name

See Also:
Constant Field Values
Constructor Detail

SshAuthenticationFactory

protected SshAuthenticationFactory()
Constructor for SshAuthenticationFactory

Method Detail

getSupportedMethods

public static java.util.List getSupportedMethods()
Gets the supported authentication methods

Returns:
A list containing the authentication methods

newInstance

public static SshAuthentication newInstance(java.lang.String methodName)
                                     throws AlgorithmNotSupportedException

Creates a new instance of the SshAuthentication object which implements methodName.

Parameters:
methodName - The method to instansiate
Returns:
The instance
Throws:
AlgorithmNotSupportedException - Thrown if the method is not supported


Copyright © 2002 Sshtools.com. All Rights Reserved.