Enum Class Tls12CipherSuite

java.lang.Object
java.lang.Enum<Tls12CipherSuite>
io.github.mahmoudimus.quic.tls.Tls12CipherSuite
All Implemented Interfaces:
Serializable, Comparable<Tls12CipherSuite>, Constable

public enum Tls12CipherSuite extends Enum<Tls12CipherSuite>
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.
  • Enum Constant Details

    • TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256

      public static final Tls12CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    • TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384

      public static final Tls12CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
    • TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

      public static final Tls12CipherSuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
    • TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384

      public static final Tls12CipherSuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
    • TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256

      public static final Tls12CipherSuite TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
    • TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256

      public static final Tls12CipherSuite TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
    • TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA

      public static final Tls12CipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
    • TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA

      public static final Tls12CipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
    • TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA

      public static final Tls12CipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
    • TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA

      public static final Tls12CipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
    • TLS_RSA_WITH_AES_128_GCM_SHA256

      public static final Tls12CipherSuite TLS_RSA_WITH_AES_128_GCM_SHA256
    • TLS_RSA_WITH_AES_256_GCM_SHA384

      public static final Tls12CipherSuite TLS_RSA_WITH_AES_256_GCM_SHA384
    • TLS_RSA_WITH_AES_128_CBC_SHA

      public static final Tls12CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA
    • TLS_RSA_WITH_AES_256_CBC_SHA

      public static final Tls12CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA
  • Method Details

    • values

      public static Tls12CipherSuite[] 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

      public static Tls12CipherSuite valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • code

      public int code()
      Returns the suite's code point.
      Returns:
      the suite's code point
    • forCode

      public static Tls12CipherSuite forCode(int code)
      The suite with a code point.
      Parameters:
      code - the code point
      Returns:
      the suite, or null if it is not one of these