|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.ssh.SSHFTPAlgorithm
public class SSHFTPAlgorithm
Each instance of SSHFTPAlgorithm corresponds to one particular
algorithm. Each algorithm is of one type. There are five types of algorithms:
CIPHER)
COMPRESSION)
KEY_EXCHANGE)
KEY_PAID)
MAC)
SSHFTPAlgorithm has a static integer for each algorithm-type.
Instances of SSHFTPAlgorithm cannot be created, instead
a static member variable for each supported algorithm is provided. Methods
are also provided for obtaining a list of supported algorithms.
| Field Summary | |
|---|---|
static int |
CIPHER
Integer defining the algorithm-type, cipher. |
static SSHFTPAlgorithm |
CIPHER_3DES_CBC
Instance of SSHFTPAlgorithm corresponding to
the 3DES cipher algorithm. |
static SSHFTPAlgorithm |
CIPHER_AES128_CBC
Instance of SSHFTPAlgorithm corresponding to
the Rijndael-128 cipher algorithm. |
static SSHFTPAlgorithm |
CIPHER_AES192_CBC
Instance of SSHFTPAlgorithm corresponding to
the Rijndael-192 cipher algorithm. |
static SSHFTPAlgorithm |
CIPHER_AES256_CBC
Instance of SSHFTPAlgorithm corresponding to
the Rijndael-256 cipher algorithm. |
static SSHFTPAlgorithm |
CIPHER_BLOWFISH_CBC
Instance of SSHFTPAlgorithm corresponding to
the Blowfish cipher algorithm. |
static int |
COMPRESSION
Integer defining the algorithm-type, compression. |
static SSHFTPAlgorithm |
COMPRESSION_NONE
Instance of SSHFTPAlgorithm corresponding to
the null compression algorithm. |
static SSHFTPAlgorithm |
COMPRESSION_ZLIB
Instance of SSHFTPAlgorithm corresponding to
the zlib compression algorithm. |
static SSHFTPAlgorithm |
KEY_DSA
Instance of SSHFTPAlgorithm corresponding to
the DSA key algorithm. |
static int |
KEY_EXCHANGE
Integer defining the algorithm-type, key-exchange. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP1_SHA1
Instance of SSHFTPAlgorithm corresponding to
the DH group key exchange algorithm. |
static int |
KEY_PAIR
Integer defining the algorithm-type, key-pair. |
static SSHFTPAlgorithm |
KEY_RSA
Instance of SSHFTPAlgorithm corresponding to
the RSA key algorithm. |
static int |
MAC
Integer defining the algorithm-type, MAC. |
static SSHFTPAlgorithm |
MAC_MD5
Instance of SSHFTPAlgorithm corresponding to
the MD5 MAC algorithm. |
static SSHFTPAlgorithm |
MAC_MD5_96
Instance of SSHFTPAlgorithm corresponding to
the MD5-96 MAC algorithm. |
static SSHFTPAlgorithm |
MAC_SHA1
Instance of SSHFTPAlgorithm corresponding to
the SHA1 MAC algorithm. |
static SSHFTPAlgorithm |
MAC_SHA1_96
Instance of SSHFTPAlgorithm corresponding to
the SHA1-96 MAC algorithm. |
| Method Summary | |
|---|---|
static void |
disableAllAlgorithms()
Disables all algorithms. |
static void |
disableAllAlgorithms(int algorithmType)
Disables all algorithms of a particular type. |
static SSHFTPAlgorithm |
getAlgorithm(java.lang.String code)
Returns the algorithm with the given code. |
static SSHFTPAlgorithm[] |
getAlgorithms()
Returns an array of all supported algorithms. |
static SSHFTPAlgorithm[] |
getAlgorithms(int algorithmType)
Returns an array of all supported algorithms of the specified type. |
java.lang.String |
getCode()
Returns the code of the algorithm. |
static SSHFTPAlgorithm[] |
getEnabledAlgorithms()
Returns an array containing all enabled algorithms (of all types). |
static SSHFTPAlgorithm[] |
getEnabledAlgorithms(int algorithmType)
Returns an array containing all enabled algorithms of a particular type. |
int |
getType()
Returns the type of the algorithm. |
static boolean |
isAlgorithmEnabled(SSHFTPAlgorithm algorithm)
Returns true if the given algorithm is enabled. |
static void |
setAlgorithmEnabled(SSHFTPAlgorithm algorithm,
boolean enable)
Enable/disable the given algorithm. |
java.lang.String |
toString()
Returns a string representation of the algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CIPHER
public static final int COMPRESSION
public static final int KEY_EXCHANGE
public static final int KEY_PAIR
public static final int MAC
public static final SSHFTPAlgorithm CIPHER_3DES_CBC
SSHFTPAlgorithm corresponding to
the 3DES cipher algorithm.
public static final SSHFTPAlgorithm CIPHER_BLOWFISH_CBC
SSHFTPAlgorithm corresponding to
the Blowfish cipher algorithm.
public static final SSHFTPAlgorithm CIPHER_AES128_CBC
SSHFTPAlgorithm corresponding to
the Rijndael-128 cipher algorithm.
public static final SSHFTPAlgorithm CIPHER_AES192_CBC
SSHFTPAlgorithm corresponding to
the Rijndael-192 cipher algorithm.
public static final SSHFTPAlgorithm CIPHER_AES256_CBC
SSHFTPAlgorithm corresponding to
the Rijndael-256 cipher algorithm.
public static final SSHFTPAlgorithm COMPRESSION_NONE
SSHFTPAlgorithm corresponding to
the null compression algorithm.
public static final SSHFTPAlgorithm COMPRESSION_ZLIB
SSHFTPAlgorithm corresponding to
the zlib compression algorithm.
public static final SSHFTPAlgorithm KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP1_SHA1
SSHFTPAlgorithm corresponding to
the DH group key exchange algorithm.
public static final SSHFTPAlgorithm KEY_RSA
SSHFTPAlgorithm corresponding to
the RSA key algorithm.
public static final SSHFTPAlgorithm KEY_DSA
SSHFTPAlgorithm corresponding to
the DSA key algorithm.
public static final SSHFTPAlgorithm MAC_MD5_96
SSHFTPAlgorithm corresponding to
the MD5-96 MAC algorithm.
public static final SSHFTPAlgorithm MAC_MD5
SSHFTPAlgorithm corresponding to
the MD5 MAC algorithm.
public static final SSHFTPAlgorithm MAC_SHA1_96
SSHFTPAlgorithm corresponding to
the SHA1-96 MAC algorithm.
public static final SSHFTPAlgorithm MAC_SHA1
SSHFTPAlgorithm corresponding to
the SHA1 MAC algorithm.
| Method Detail |
|---|
public static SSHFTPAlgorithm[] getAlgorithms()
public static SSHFTPAlgorithm[] getAlgorithms(int algorithmType)
throws SSHFTPException
SSHFTPException - Thrown if the given algorithm-type is invalid.public static SSHFTPAlgorithm getAlgorithm(java.lang.String code)
public static SSHFTPAlgorithm[] getEnabledAlgorithms()
public static SSHFTPAlgorithm[] getEnabledAlgorithms(int algorithmType)
throws SSHFTPException
algorithmType - Type of algorithms to return (See SSHFTPAlgorithm).
SSHFTPException - Thrown if the given algorithm-type is invalid.
public static void disableAllAlgorithms(int algorithmType)
throws SSHFTPException
algorithmType - Type of algorithms to return (See SSHFTPAlgorithm).
SSHFTPExceptionpublic static void disableAllAlgorithms()
public static void setAlgorithmEnabled(SSHFTPAlgorithm algorithm,
boolean enable)
algorithm - Algorithm to enable/disable.enable - Flag indicating whether the algorithm should be enabled or disabled.public static boolean isAlgorithmEnabled(SSHFTPAlgorithm algorithm)
true if the given algorithm is enabled.
algorithm - Algorithm to return status of.public java.lang.String getCode()
public int getType()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||