Package org.conscrypt.metrics
Enum CipherSuite
- java.lang.Object
-
- java.lang.Enum<CipherSuite>
-
- org.conscrypt.metrics.CipherSuite
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CipherSuite>
@Internal public enum CipherSuite extends java.lang.Enum<CipherSuite>
Cipher suites to metric mapping for metrics instrumentation. Must be in sync with frameworks/base/cmds/statsd/src/atoms.proto Ids are based on IANA's database of SSL/TLS cipher suites
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description (package private) intid
-
Constructor Summary
Constructors Modifier Constructor Description privateCipherSuite(int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CipherSuiteforName(java.lang.String name)intgetId()static CipherSuitevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CipherSuite[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_CIPHER_SUITE
public static final CipherSuite UNKNOWN_CIPHER_SUITE
-
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
-
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
-
TLS_RSA_WITH_AES_256_CBC_SHA
public static final CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA
-
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
-
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
-
TLS_RSA_WITH_AES_128_CBC_SHA
public static final CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA
-
TLS_RSA_WITH_3DES_EDE_CBC_SHA
public static final CipherSuite TLS_RSA_WITH_3DES_EDE_CBC_SHA
-
TLS_RSA_WITH_AES_128_GCM_SHA256
public static final CipherSuite TLS_RSA_WITH_AES_128_GCM_SHA256
-
TLS_RSA_WITH_AES_256_GCM_SHA384
public static final CipherSuite TLS_RSA_WITH_AES_256_GCM_SHA384
-
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
-
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
public static final CipherSuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
-
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
-
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
-
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
public static final CipherSuite TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
-
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
public static final CipherSuite TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
-
TLS_PSK_WITH_AES_128_CBC_SHA
public static final CipherSuite TLS_PSK_WITH_AES_128_CBC_SHA
-
TLS_PSK_WITH_AES_256_CBC_SHA
public static final CipherSuite TLS_PSK_WITH_AES_256_CBC_SHA
-
TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
public static final CipherSuite TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA
-
TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
public static final CipherSuite TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA
-
TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256
public static final CipherSuite TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256
-
TLS_AES_128_GCM_SHA256
public static final CipherSuite TLS_AES_128_GCM_SHA256
-
TLS_AES_256_GCM_SHA384
public static final CipherSuite TLS_AES_256_GCM_SHA384
-
TLS_CHACHA20_POLY1305_SHA256
public static final CipherSuite TLS_CHACHA20_POLY1305_SHA256
-
TLS_CIPHER_FAILED
public static final CipherSuite TLS_CIPHER_FAILED
-
-
Method Detail
-
values
public static CipherSuite[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CipherSuite c : CipherSuite.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CipherSuite valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getId
public int getId()
-
forName
public static CipherSuite forName(java.lang.String name)
-
-