com.sshtools.j2ssh.transport.cipher
Class SshCipherFactory

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sshtools.j2ssh.transport.cipher.SshCipherFactory
All Implemented Interfaces:
java.io.Serializable

public class SshCipherFactory
extends java.lang.Exception

Creates instances of all available ciphers. All the standard ciphers described within the SSH transport protocol are reserved for implementation by sshtools.com. Additional ciphers can be implemented by using the SshCipher interface and adding a CipherAlgorithm element into the CipherConfiguraton element of the SSH API configuraiton file ssh.xml.

All additional cipher names are required to follow the name@domain syntax as described in the SSH transport protocol. The factory will not register cipher names that do not follow the extensibility rules.

If a standard cipher is not currently available then email the sshtools development team or alternatvly implement it and send it to us! we will include your source and credit you.

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )
See Also:
Serialized Form

Field Summary
static java.lang.String CIPHER_3DES
          The standard TripleDes cipher
 
Constructor Summary
protected SshCipherFactory()
          Constructor for the SshCipherFactory object
 
Method Summary
static java.lang.String getDefaultCipher()
           Returns the configurations default cipher.
static java.util.List getSupportedCiphers()
           Returns the list of supported ciphers.
static SshCipher newInstance(java.lang.String algorithmName)
           Creates a new instance of the algorithm.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CIPHER_3DES

public static final java.lang.String CIPHER_3DES
The standard TripleDes cipher

See Also:
Constant Field Values
Constructor Detail

SshCipherFactory

protected SshCipherFactory()
Constructor for the SshCipherFactory object

Method Detail

getDefaultCipher

public static java.lang.String getDefaultCipher()

Returns the configurations default cipher.

Returns:

getSupportedCiphers

public static java.util.List getSupportedCiphers()

Returns the list of supported ciphers.

Returns:
The supported Ciphers

newInstance

public static SshCipher newInstance(java.lang.String algorithmName)
                             throws AlgorithmNotSupportedException

Creates a new instance of the algorithm.

Parameters:
algorithmName - The name of the algorithm to create
Returns:
The new instance
Throws:
AlgorithmNotSupportedException - Thrown if the algorithm is not supported


Copyright © 2002 Sshtools.com. All Rights Reserved.