Package org.wildfly.security.ssl
Enum Authentication
- java.lang.Object
-
- java.lang.Enum<Authentication>
-
- org.wildfly.security.ssl.Authentication
-
- All Implemented Interfaces:
Serializable,Comparable<Authentication>
public enum Authentication extends Enum<Authentication>
The authentication type for SSL/TLS cipher suite selection.- Author:
- David M. Lloyd
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DHDiffie-Hellman key-based authentication.DSSDSS key-based authentication.ECDHElliptic curve Diffie-Hellman key-based authentication.ECDSAElliptic curve DSA key-based authentication.FZAFortezza authentication.GOST01GOST R 34.10-2001 authentication.GOST94GOST R 34.10-94 authentication.KRB5Kerberos V5 authentication.NULLNo authentication (the cipher suite is anonymous).PSKPre-shared key (PSK) based authentication.RSARSA key-based authentication.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanin(Authentication... values)Determine whether this instance is equal to one of the given instances.booleanin(Authentication value1, Authentication value2)Determine whether this instance is equal to one of the given instances.booleanin(Authentication value1, Authentication value2, Authentication value3)Determine whether this instance is equal to one of the given instances.static booleanisFull(EnumSet<Authentication> authentications)Determine whether the given set is "full" (meaning it contains all possible values).static AuthenticationvalueOf(String name)Returns the enum constant of this type with the specified name.static Authentication[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final Authentication NULL
No authentication (the cipher suite is anonymous).
-
RSA
public static final Authentication RSA
RSA key-based authentication.
-
DSS
public static final Authentication DSS
DSS key-based authentication.
-
DH
public static final Authentication DH
Diffie-Hellman key-based authentication.
-
ECDH
public static final Authentication ECDH
Elliptic curve Diffie-Hellman key-based authentication.
-
KRB5
public static final Authentication KRB5
Kerberos V5 authentication.
-
ECDSA
public static final Authentication ECDSA
Elliptic curve DSA key-based authentication.
-
PSK
public static final Authentication PSK
Pre-shared key (PSK) based authentication.
-
GOST94
public static final Authentication GOST94
GOST R 34.10-94 authentication.
-
GOST01
public static final Authentication GOST01
GOST R 34.10-2001 authentication.
-
FZA
public static final Authentication FZA
Fortezza authentication.
-
-
Method Detail
-
values
public static Authentication[] 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 (Authentication c : Authentication.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Authentication 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
-
isFull
public static boolean isFull(EnumSet<Authentication> authentications)
Determine whether the given set is "full" (meaning it contains all possible values).- Parameters:
authentications- the set- Returns:
trueif the set is full,falseotherwise
-
in
public boolean in(Authentication value1, Authentication value2)
Determine whether this instance is equal to one of the given instances.- Parameters:
value1- the first instancevalue2- the second instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
public boolean in(Authentication value1, Authentication value2, Authentication 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:
trueif one of the instances matches this one,falseotherwise
-
in
public boolean in(Authentication... values)
Determine whether this instance is equal to one of the given instances.- Parameters:
values- the values to match against- Returns:
trueif one of the instances matches this one,falseotherwise
-
-