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 DH
Diffie-Hellman key-based authentication.DSS
DSS key-based authentication.ECDH
Elliptic curve Diffie-Hellman key-based authentication.ECDSA
Elliptic curve DSA key-based authentication.FZA
Fortezza authentication.GOST01
GOST R 34.10-2001 authentication.GOST94
GOST R 34.10-94 authentication.KRB5
Kerberos V5 authentication.NULL
No authentication (the cipher suite is anonymous).PSK
Pre-shared key (PSK) based authentication.RSA
RSA key-based authentication.
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
fullSize
-
Constructor Summary
Constructors Modifier Constructor Description private
Authentication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static Authentication
forName(String name)
boolean
in(Authentication... values)
Determine whether this instance is equal to one of the given instances.boolean
in(Authentication value1, Authentication value2)
Determine whether this instance is equal to one of the given instances.boolean
in(Authentication value1, Authentication value2, Authentication value3)
Determine whether this instance is equal to one of the given instances.static boolean
isFull(EnumSet<Authentication> authentications)
Determine whether the given set is "full" (meaning it contains all possible values).(package private) static Authentication
require(String name)
static Authentication
valueOf(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
-
forName
static Authentication forName(String name)
-
require
static Authentication require(String name)
-
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:
true
if the set is full,false
otherwise
-
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:
true
if one of the instances matches this one,false
otherwise
-
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:
true
if one of the instances matches this one,false
otherwise
-
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:
true
if one of the instances matches this one,false
otherwise
-
-