public class SSHFTPAlgorithm
extends java.lang.Object
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.Modifier and Type | Field and Description |
---|---|
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_AES128_CTR
Instance of
SSHFTPAlgorithm corresponding to
the AES-128 cipher algorithm in CTR mode |
static SSHFTPAlgorithm |
CIPHER_AES192_CBC
Instance of
SSHFTPAlgorithm corresponding to
the AES-192 cipher algorithm. |
static SSHFTPAlgorithm |
CIPHER_AES192_CTR
Instance of
SSHFTPAlgorithm corresponding to
the AES-192 cipher algorithm in CTR mode |
static SSHFTPAlgorithm |
CIPHER_AES256_CBC
Instance of
SSHFTPAlgorithm corresponding to
the AES-256 cipher algorithm. |
static SSHFTPAlgorithm |
CIPHER_AES256_CTR
Instance of
SSHFTPAlgorithm corresponding to
the AES-256 cipher algorithm in CTR mode |
static SSHFTPAlgorithm |
CIPHER_ARCFOUR
Instance of
SSHFTPAlgorithm corresponding to
the ARCFour 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 |
COMPRESSION_ZLIB_DELAYED
Instance of
SSHFTPAlgorithm corresponding to
the delayed zlib compression algorithm. |
static SSHFTPAlgorithm |
KEY_DSA
Instance of
SSHFTPAlgorithm corresponding to
the DSA key algorithm. |
static SSHFTPAlgorithm |
KEY_ECDSA_SHA2_NISTP256
Instance of
SSHFTPAlgorithm corresponding to
the ECDSA key algorithm. |
static SSHFTPAlgorithm |
KEY_ECDSA_SHA2_NISTP384
Instance of
SSHFTPAlgorithm corresponding to
the ECDSA key algorithm. |
static SSHFTPAlgorithm |
KEY_ECDSA_SHA2_NISTP521
Instance of
SSHFTPAlgorithm corresponding to
the ECDSA key algorithm. |
static int |
KEY_EXCHANGE
Integer defining the algorithm-type, key-exchange.
|
static SSHFTPAlgorithm |
KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP_EXCHANGE_SHA1
Instance of
SSHFTPAlgorithm corresponding to
the DH group key exchange algorithm. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP_EXCHANGE_SHA256
Instance of
SSHFTPAlgorithm corresponding to
the DH group key exchange algorithm. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP1_SHA1
Instance of
SSHFTPAlgorithm corresponding to
the DH group key exchange algorithm. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP14_SHA1
Instance of
SSHFTPAlgorithm corresponding to
the DH group key exchange algorithm. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP14_SHA256
Instance of
SSHFTPAlgorithm corresponding to
the DH group key exchange algorithm. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_ECDH_SHA2_NISTP256
Instance of
SSHFTPAlgorithm corresponding to
the ECDH_SHA2_NISTP256 group key exchange algorithm. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_ECDH_SHA2_NISTP384
Instance of
SSHFTPAlgorithm corresponding to
the ECDH_SHA2_NISTP384 group key exchange algorithm. |
static SSHFTPAlgorithm |
KEY_EXCHANGE_ECDH_SHA2_NISTP521
Instance of
SSHFTPAlgorithm corresponding to
the ECDH_SHA2_NISTP521 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 SSHFTPAlgorithm |
KEY_RSA_SHA2_256
Instance of
SSHFTPAlgorithm corresponding to
the RSA key algorithm with SHA256 |
static SSHFTPAlgorithm |
KEY_RSA_SHA2_512
Instance of
SSHFTPAlgorithm corresponding to
the RSA key algorithm with SHA512 |
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_SHA_256
Instance of
SSHFTPAlgorithm corresponding to
the SHA2-256 MAC algorithm. |
static SSHFTPAlgorithm |
MAC_SHA_512
Instance of
SSHFTPAlgorithm corresponding to
the SHA2-512 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. |
static SSHFTPAlgorithm |
MAC_SHA2_256
Instance of
SSHFTPAlgorithm corresponding to
the SHA2-256 MAC algorithm. |
static SSHFTPAlgorithm |
MAC_SHA2_512
Instance of
SSHFTPAlgorithm corresponding to
the SHA2-512 MAC algorithm. |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getType()
Returns the type of the algorithm.
|
java.lang.String |
toString()
Returns a string representation of the algorithm.
|
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 AES-192 cipher algorithm.public static final SSHFTPAlgorithm CIPHER_AES256_CBC
SSHFTPAlgorithm
corresponding to
the AES-256 cipher algorithm.public static final SSHFTPAlgorithm CIPHER_AES128_CTR
SSHFTPAlgorithm
corresponding to
the AES-128 cipher algorithm in CTR modepublic static final SSHFTPAlgorithm CIPHER_AES192_CTR
SSHFTPAlgorithm
corresponding to
the AES-192 cipher algorithm in CTR modepublic static final SSHFTPAlgorithm CIPHER_AES256_CTR
SSHFTPAlgorithm
corresponding to
the AES-256 cipher algorithm in CTR modepublic static final SSHFTPAlgorithm CIPHER_ARCFOUR
SSHFTPAlgorithm
corresponding to
the ARCFour 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 COMPRESSION_ZLIB_DELAYED
SSHFTPAlgorithm
corresponding to
the delayed zlib compression algorithm.public static final SSHFTPAlgorithm KEY_EXCHANGE_ECDH_SHA2_NISTP256
SSHFTPAlgorithm
corresponding to
the ECDH_SHA2_NISTP256 group key exchange algorithm.public static final SSHFTPAlgorithm KEY_EXCHANGE_ECDH_SHA2_NISTP384
SSHFTPAlgorithm
corresponding to
the ECDH_SHA2_NISTP384 group key exchange algorithm.public static final SSHFTPAlgorithm KEY_EXCHANGE_ECDH_SHA2_NISTP521
SSHFTPAlgorithm
corresponding to
the ECDH_SHA2_NISTP521 group key exchange 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_EXCHANGE_DIFFIE_HELLMAN_GROUP14_SHA1
SSHFTPAlgorithm
corresponding to
the DH group key exchange algorithm.public static final SSHFTPAlgorithm KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP14_SHA256
SSHFTPAlgorithm
corresponding to
the DH group key exchange algorithm.public static final SSHFTPAlgorithm KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP_EXCHANGE_SHA1
SSHFTPAlgorithm
corresponding to
the DH group key exchange algorithm.public static final SSHFTPAlgorithm KEY_EXCHANGE_DIFFIE_HELLMAN_GROUP_EXCHANGE_SHA256
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_RSA_SHA2_256
SSHFTPAlgorithm
corresponding to
the RSA key algorithm with SHA256public static final SSHFTPAlgorithm KEY_RSA_SHA2_512
SSHFTPAlgorithm
corresponding to
the RSA key algorithm with SHA512public static final SSHFTPAlgorithm KEY_DSA
SSHFTPAlgorithm
corresponding to
the DSA key algorithm.public static final SSHFTPAlgorithm KEY_ECDSA_SHA2_NISTP256
SSHFTPAlgorithm
corresponding to
the ECDSA key algorithm.public static final SSHFTPAlgorithm KEY_ECDSA_SHA2_NISTP384
SSHFTPAlgorithm
corresponding to
the ECDSA key algorithm.public static final SSHFTPAlgorithm KEY_ECDSA_SHA2_NISTP521
SSHFTPAlgorithm
corresponding to
the ECDSA 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.public static final SSHFTPAlgorithm MAC_SHA2_256
SSHFTPAlgorithm
corresponding to
the SHA2-256 MAC algorithm.public static final SSHFTPAlgorithm MAC_SHA_256
SSHFTPAlgorithm
corresponding to
the SHA2-256 MAC algorithm.public static final SSHFTPAlgorithm MAC_SHA2_512
SSHFTPAlgorithm
corresponding to
the SHA2-512 MAC algorithm.public static final SSHFTPAlgorithm MAC_SHA_512
SSHFTPAlgorithm
corresponding to
the SHA2-512 MAC algorithm.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 java.lang.String getCode()
public int getType()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.