Enum Class KeyExchange

java.lang.Object
java.lang.Enum<KeyExchange>
org.apache.tomcat.util.net.openssl.ciphers.KeyExchange
All Implemented Interfaces:
Serializable, Comparable<KeyExchange>, Constable

public enum KeyExchange extends Enum<KeyExchange>
Key exchange algorithms supported by OpenSSL.
  • Enum Constant Details

    • EECDH

      public static final KeyExchange EECDH
      Ephemeral ECDH (SSL_kEECDH).
    • RSA

      public static final KeyExchange RSA
      RSA key exchange (SSL_kRSA).
    • DHr

      public static final KeyExchange DHr
      DH cert, RSA CA cert (SSL_kDHr). Not supported.
    • DHd

      public static final KeyExchange DHd
      DH cert, DSA CA cert (SSL_kDHd). Not supported.
    • EDH

      public static final KeyExchange EDH
      Temporary DH key, no DH cert (SSL_kDHE).
    • PSK

      public static final KeyExchange PSK
      Pre-shared key (SSK_kPSK).
    • FZA

      public static final KeyExchange FZA
      Fortezza (SSL_kFZA). Not supported.
    • KRB5

      public static final KeyExchange KRB5
      Kerberos 5 key exchange (SSL_kKRB5).
    • ECDHr

      public static final KeyExchange ECDHr
      ECDH cert, RSA CA cert (SSL_kECDHr).
    • ECDHe

      public static final KeyExchange ECDHe
      ECDH cert, ECDSA CA cert (SSL_kECDHe).
    • GOST

      public static final KeyExchange GOST
      GOST key exchange (SSL_kGOST).
    • SRP

      public static final KeyExchange SRP
      SRP (SSL_kSRP).
    • RSAPSK

      public static final KeyExchange RSAPSK
      RSA with pre-shared key.
    • ECDHEPSK

      public static final KeyExchange ECDHEPSK
      ECDHE with pre-shared key.
    • DHEPSK

      public static final KeyExchange DHEPSK
      DHE with pre-shared key.
    • ANY

      public static final KeyExchange ANY
      Any key exchange (TLS 1.3).
  • Method Details

    • values

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