Package io.github.mahmoudimus.quic.tls
Enum Class Tls12CipherSuite
- All Implemented Interfaces:
Serializable,Comparable<Tls12CipherSuite>,Constable
The TLS 1.2 cipher suites browser profiles offer (RFC 5246, 5289, 7905): ECDHE with an ECDSA or
RSA certificate, or RSA key transport; AES-GCM, ChaCha20-Poly1305 or AES-CBC with HMAC-SHA1.
The PRF hash is SHA-384 for the
_SHA384 suites and SHA-256 for the rest.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the suite's code point.static Tls12CipherSuiteforCode(int code) The suite with a code point.static Tls12CipherSuiteReturns the enum constant of this class with the specified name.static Tls12CipherSuite[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
-
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
-
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
-
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
-
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
-
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
-
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
-
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
-
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
-
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
-
TLS_RSA_WITH_AES_128_GCM_SHA256
-
TLS_RSA_WITH_AES_256_GCM_SHA384
-
TLS_RSA_WITH_AES_128_CBC_SHA
-
TLS_RSA_WITH_AES_256_CBC_SHA
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
public int code()Returns the suite's code point.- Returns:
- the suite's code point
-
forCode
The suite with a code point.- Parameters:
code- the code point- Returns:
- the suite, or null if it is not one of these
-