Package org.wildfly.security.ssl
Enum KeyAgreement
- java.lang.Object
-
- java.lang.Enum<KeyAgreement>
-
- org.wildfly.security.ssl.KeyAgreement
-
- All Implemented Interfaces:
Serializable
,Comparable<KeyAgreement>
public enum KeyAgreement extends Enum<KeyAgreement>
The key agreement type for SSL/TLS cipher suite selection.- Author:
- David M. Lloyd
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DHd
Diffie-Hellman key agreement using DSS-signed keys.DHE
Ephemeral Diffie-Hellman key agreement.DHEPSK
Ephemeral Diffie-Hellman pre-shared key ("PSK") key agreement.DHr
Diffie-Hellman key agreement using RSA-signed keys.ECDHe
Elliptic-curve Diffie-Hellman ("ECDH") key agreement using ECDH-signed keys.ECDHE
Ephemeral elliptic-curve Diffie-Hellman key agreement.ECDHEPSK
RSA pre-shared key ("PSK") key agreement.ECDHr
Elliptic-curve Diffie-Hellman ("ECDH") key agreement using RSA-signed keys.FZA
Fortezza key agreement.GOST
VKA 34.10 key agreement as per RFC 4357.KRB5
Kerberos V5 key agreement.PSK
Pre-shared key ("PSK") key agreement.RSA
RSA key agreement.RSAPSK
RSA pre-shared key ("PSK") key agreement.SRP
Secure remote password ("SRP") key agreement as per RFC 5054.
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
fullSize
-
Constructor Summary
Constructors Modifier Constructor Description private
KeyAgreement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static KeyAgreement
forName(String name)
boolean
in(KeyAgreement... values)
Determine whether this instance is equal to one of the given instances.boolean
in(KeyAgreement value1, KeyAgreement value2)
Determine whether this instance is equal to one of the given instances.boolean
in(KeyAgreement value1, KeyAgreement value2, KeyAgreement value3)
Determine whether this instance is equal to one of the given instances.static boolean
isFull(EnumSet<KeyAgreement> keyAgreements)
Determine whether the given set is "full" (meaning it contains all possible values).(package private) static KeyAgreement
require(String name)
static KeyAgreement
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyAgreement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ECDHE
public static final KeyAgreement ECDHE
Ephemeral elliptic-curve Diffie-Hellman key agreement.
-
RSA
public static final KeyAgreement RSA
RSA key agreement.
-
DHr
public static final KeyAgreement DHr
Diffie-Hellman key agreement using RSA-signed keys.
-
DHd
public static final KeyAgreement DHd
Diffie-Hellman key agreement using DSS-signed keys.
-
DHE
public static final KeyAgreement DHE
Ephemeral Diffie-Hellman key agreement.
-
PSK
public static final KeyAgreement PSK
Pre-shared key ("PSK") key agreement.
-
FZA
public static final KeyAgreement FZA
Fortezza key agreement.
-
KRB5
public static final KeyAgreement KRB5
Kerberos V5 key agreement.
-
ECDHr
public static final KeyAgreement ECDHr
Elliptic-curve Diffie-Hellman ("ECDH") key agreement using RSA-signed keys.
-
ECDHe
public static final KeyAgreement ECDHe
Elliptic-curve Diffie-Hellman ("ECDH") key agreement using ECDH-signed keys.
-
GOST
public static final KeyAgreement GOST
VKA 34.10 key agreement as per RFC 4357.
-
SRP
public static final KeyAgreement SRP
Secure remote password ("SRP") key agreement as per RFC 5054.
-
RSAPSK
public static final KeyAgreement RSAPSK
RSA pre-shared key ("PSK") key agreement.
-
DHEPSK
public static final KeyAgreement DHEPSK
Ephemeral Diffie-Hellman pre-shared key ("PSK") key agreement.
-
ECDHEPSK
public static final KeyAgreement ECDHEPSK
RSA pre-shared key ("PSK") key agreement.
-
-
Method Detail
-
values
public static KeyAgreement[] 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 (KeyAgreement c : KeyAgreement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyAgreement valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forName
static KeyAgreement forName(String name)
-
require
static KeyAgreement require(String name)
-
isFull
public static boolean isFull(EnumSet<KeyAgreement> keyAgreements)
Determine whether the given set is "full" (meaning it contains all possible values).- Parameters:
keyAgreements
- the set- Returns:
true
if the set is full,false
otherwise
-
in
public boolean in(KeyAgreement value1, KeyAgreement value2)
Determine whether this instance is equal to one of the given instances.- Parameters:
value1
- the first instancevalue2
- the second instance- Returns:
true
if one of the instances matches this one,false
otherwise
-
in
public boolean in(KeyAgreement value1, KeyAgreement value2, KeyAgreement value3)
Determine whether this instance is equal to one of the given instances.- Parameters:
value1
- the first instancevalue2
- the second instancevalue3
- the third instance- Returns:
true
if one of the instances matches this one,false
otherwise
-
in
public boolean in(KeyAgreement... values)
Determine whether this instance is equal to one of the given instances.- Parameters:
values
- the values to match against- Returns:
true
if one of the instances matches this one,false
otherwise
-
-