com.sshtools.j2ssh.transport.kex
Class SshKeyExchangeFactory

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.kex.SshKeyExchangeFactory

public class SshKeyExchangeFactory
extends java.lang.Object

Creates new instances of SshKeyExchange objects. Will load additional key exchange methods from the SSH API configuration file ssh.xml as long as they follow the name@domain syntax.

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

Field Summary
static java.lang.String DIFFIE_HELLMAN_GROUP1_SHA1
          The diffie-hellman-group1-sha1 method
 
Constructor Summary
protected SshKeyExchangeFactory()
          Constructor for the SshKeyExchangeFactory object
 
Method Summary
static java.lang.String getDefaultKeyExchange()
          Gets the default key exchange method name
static java.util.List getSupportedKeyExchanges()
          Gets the supported key exchange methods
static SshKeyExchange newInstance(java.lang.String methodName)
          Creates a new instance of the key exchange method specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIFFIE_HELLMAN_GROUP1_SHA1

public static final java.lang.String DIFFIE_HELLMAN_GROUP1_SHA1
The diffie-hellman-group1-sha1 method

See Also:
Constant Field Values
Constructor Detail

SshKeyExchangeFactory

protected SshKeyExchangeFactory()
Constructor for the SshKeyExchangeFactory object

Method Detail

getDefaultKeyExchange

public static java.lang.String getDefaultKeyExchange()
Gets the default key exchange method name

Returns:

getSupportedKeyExchanges

public static java.util.List getSupportedKeyExchanges()
Gets the supported key exchange methods

Returns:
The supported key exchanges

newInstance

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

Parameters:
methodName - The key exchange method
Returns:
The new instance
Throws:
AlgorithmNotSupportedException - Thrown if the method is not supported


Copyright © 2002 Sshtools.com. All Rights Reserved.