public class SSLFTPCipherSuite
extends java.lang.Object
A cipher-suite is a set of algorithms that is used for various aspects of SSL security. For a client and a server to be able to communicate, they must be able to agree on a particular cipher-suite. Different types of servers recognize different cipher-suites, so it is usually up to the client make sure that it shares at least one cipher-suite with the server that it is trying to communicate securely with. By itself, this fact would imply that the client should simply enable all possible suites in order to increase the chances of overlap. However, this is not necessarily wise since some cipher-suites (esp. those which adhered to the (now defunct) US export restrictions are relatively easy to break, whereas some others are trusted as currently being virtually unbreakable.
A cipher-suite consists of a digital signature algorithm, a key-exchange algorithm, an encryption algorithm, and a digest algorithm.
Modifier and Type | Method and Description |
---|---|
static SSLFTPCipherSuite |
getCipherSuite(int code)
Returns a reference to the cipher-suite with the given code or
null if no
suite with this code exists. |
static SSLFTPCipherSuite |
getCipherSuite(java.lang.String name)
Returns a reference to the named cipher-suite or
null if no
suite with this name exists. |
static java.lang.String[] |
getCipherSuiteNames()
Returns the names of all available cipher-suites.
|
static SSLFTPCipherSuite[] |
getCipherSuites()
Returns an array of object references to all available cipher-suites.
|
int |
getCode()
Returns the code of the cipher-suite
|
java.lang.String |
getName()
Returns the name of the cipher-suite.
|
java.lang.String |
toString() |
public static final SSLFTPCipherSuite TLS_RSA_WITH_3DES_EDE_CBC_SHA
Name: | TLS_RSA_WITH_3DES_EDE_CBC_SHA |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | 3DES_EDE_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA
Name: | TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA |
Authorization: | RSA |
Key Exchange: | DH |
Encryption: | 3DES_EDE_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
Name: | TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA |
Authorization: | RSA |
Key Exchange: | DHE |
Encryption: | 3DES_EDE_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_RSA_WITH_AES_128_CBC_SHA
Name: | TLS_RSA_WITH_AES_128_CBC_SHA |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | AES_128_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_DH_RSA_WITH_AES_128_CBC_SHA
Name: | TLS_DH_RSA_WITH_AES_128_CBC_SHA |
Authorization: | |
Key Exchange: | DH |
Encryption: | AES_128_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA
Name: | TLS_DHE_RSA_WITH_AES_128_CBC_SHA |
Authorization: | RSA |
Key Exchange: | DHE |
Encryption: | AES_128_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
Name: | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA |
Authorization: | RSA |
Key Exchange: | ECDHE |
Encryption: | AES_128_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
Name: | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA |
Authorization: | RSA |
Key Exchange: | ECDHE |
Encryption: | AES_256_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
Name: | TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA |
Authorization: | RSA |
Key Exchange: | ECDHE |
Encryption: | 3DES_EDE_CBC_SHA |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_RSA_WITH_AES_256_CBC_SHA
Name: | TLS_RSA_WITH_AES_256_CBC_SHA |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | AES_256_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_DH_RSA_WITH_AES_256_CBC_SHA
Name: | TLS_DH_RSA_WITH_AES_256_CBC_SHA |
Authorization: | RSA |
Key Exchange: | DH |
Encryption: | AES_256_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA
Name: | TLS_DHE_RSA_WITH_AES_256_CBC_SHA |
Authorization: | RSA |
Key Exchange: | DHE |
Encryption: | AES_256_CBC |
Digest: | SHA |
public static final SSLFTPCipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Name: | TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 |
Authorization: | RSA |
Key Exchange: | DHE |
Encryption: | AES_256_CBC |
Digest: | SHA256 |
public static final SSLFTPCipherSuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
Name: | TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 |
Authorization: | RSA |
Key Exchange: | DHE |
Encryption: | AES_128_CBC |
Digest: | SHA256 |
public static final SSLFTPCipherSuite TLS_RSA_WITH_AES_256_CBC_SHA256
Name: | TLS_RSA_WITH_AES_256_CBC_SHA256 |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | AES_256_CBC |
Digest: | SHA256 |
public static final SSLFTPCipherSuite TLS_RSA_WITH_AES_128_CBC_SHA256
Name: | TLS_RSA_WITH_AES_128_CBC_SHA256 |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | AES_128_CBC |
Digest: | SHA256 |
public static final SSLFTPCipherSuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Name: | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 |
Authorization: | RSA |
Key Exchange: | ECDHE |
Encryption: | AES_128_GCM |
Digest: | SHA256 |
public static final SSLFTPCipherSuite TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
Name: | TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 |
Authorization: | RSA |
Key Exchange: | DHE |
Encryption: | AES_128_GCM |
Digest: | SHA256 |
public static final SSLFTPCipherSuite TLS_RSA_WITH_AES_128_GCM_SHA256
Name: | TLS_RSA_WITH_AES_128_GCM_SHA256 |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | AES_128_GCM |
Digest: | SHA256 |
public static final SSLFTPCipherSuite TLS_RSA_WITH_AES_256_GCM_SHA384
Name: | TLS_RSA_WITH_AES_256_GCM_SHA384 |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | AES_256_GCM |
Digest: | SHA384 |
public static final SSLFTPCipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Name: | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 |
Authorization: | RSA |
Key Exchange: | RSA |
Encryption: | AES_256_CBC |
Digest: | SHA384 |
public static final SSLFTPCipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA384
Name: | TLS_DHE_RSA_WITH_AES_256_CBC_SHA384 |
Authorization: | RSA |
Key Exchange: | DHE |
Encryption: | AES_256_CBC |
Digest: | SHA384 |
public int getCode()
public java.lang.String getName() throws com.enterprisedt.net.puretls.SSLException
com.enterprisedt.net.puretls.SSLException
- Thrown if the suite-code is invalid.public static java.lang.String[] getCipherSuiteNames() throws com.enterprisedt.net.puretls.SSLException
com.enterprisedt.net.puretls.SSLException
- Thrown if the code of a suite is invalid.public static SSLFTPCipherSuite[] getCipherSuites()
public static SSLFTPCipherSuite getCipherSuite(java.lang.String name) throws com.enterprisedt.net.puretls.SSLException
null
if no
suite with this name exists.name
- Name of the required cipher-suite.null
com.enterprisedt.net.puretls.SSLException
- Thrown if no suite with the given name exists.public static SSLFTPCipherSuite getCipherSuite(int code)
null
if no
suite with this code exists.code
- Code of the required cipher-suite.null
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.