Enum Class KeyExchange
- All Implemented Interfaces:
Serializable, Comparable<KeyExchange>, Constable
Key exchange algorithms supported by OpenSSL.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny key exchange (TLS 1.3).DH cert, DSA CA cert (SSL_kDHd).DHE with pre-shared key.DH cert, RSA CA cert (SSL_kDHr).ECDH cert, ECDSA CA cert (SSL_kECDHe).ECDHE with pre-shared key.ECDH cert, RSA CA cert (SSL_kECDHr).Temporary DH key, no DH cert (SSL_kDHE).Ephemeral ECDH (SSL_kEECDH).Fortezza (SSL_kFZA).GOST key exchange (SSL_kGOST).Kerberos 5 key exchange (SSL_kKRB5).Pre-shared key (SSK_kPSK).RSA key exchange (SSL_kRSA).RSA with pre-shared key.SRP (SSL_kSRP). -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyExchangeReturns the enum constant of this class with the specified name.static KeyExchange[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EECDH
Ephemeral ECDH (SSL_kEECDH). -
RSA
RSA key exchange (SSL_kRSA). -
DHr
DH cert, RSA CA cert (SSL_kDHr). Not supported. -
DHd
DH cert, DSA CA cert (SSL_kDHd). Not supported. -
EDH
Temporary DH key, no DH cert (SSL_kDHE). -
PSK
Pre-shared key (SSK_kPSK). -
FZA
Fortezza (SSL_kFZA). Not supported. -
KRB5
Kerberos 5 key exchange (SSL_kKRB5). -
ECDHr
ECDH cert, RSA CA cert (SSL_kECDHr). -
ECDHe
ECDH cert, ECDSA CA cert (SSL_kECDHe). -
GOST
GOST key exchange (SSL_kGOST). -
SRP
SRP (SSL_kSRP). -
RSAPSK
RSA with pre-shared key. -
ECDHEPSK
ECDHE with pre-shared key. -
DHEPSK
DHE with pre-shared key. -
ANY
Any key exchange (TLS 1.3).
-
-
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
-