Enum KeyExchange
- java.lang.Object
-
- java.lang.Enum<KeyExchange>
-
- org.apache.tomcat.util.net.openssl.ciphers.KeyExchange
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KeyExchange>
public enum KeyExchange extends java.lang.Enum<KeyExchange>
Key exchange algorithms supported by OpenSSL.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYAny key exchange (TLS 1.3).DHdDH cert, DSA CA cert (SSL_kDHd).DHEPSKDHE with pre-shared key.DHrDH cert, RSA CA cert (SSL_kDHr).ECDHeECDH cert, ECDSA CA cert (SSL_kECDHe).ECDHEPSKECDHE with pre-shared key.ECDHrECDH cert, RSA CA cert (SSL_kECDHr).EDHTemporary DH key, no DH cert (SSL_kDHE).EECDHEphemeral ECDH (SSL_kEECDH).FZAFortezza (SSL_kFZA).GOSTGOST key exchange (SSL_kGOST).KRB5Kerberos 5 key exchange (SSL_kKRB5).PSKPre-shared key (SSK_kPSK).RSARSA key exchange (SSL_kRSA).RSAPSKRSA with pre-shared key.SRPSRP (SSL_kSRP).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyExchangevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KeyExchange[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static KeyExchange[] 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 (KeyExchange c : KeyExchange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyExchange 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
-
-