Package org.wildfly.security.ssl
Enum Class Protocol
- All Implemented Interfaces:
Serializable,Comparable<Protocol>,Constable
The protocol type for SSL/TLS cipher suite selection and protocol selection.
- Author:
- David M. Lloyd
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolGets an enum item for given protocol name.booleanDetermine whether this instance is equal to one of the given instances.booleanDetermine whether this instance is equal to one of the given instances.booleanDetermine whether this instance is equal to one of the given instances.static booleanDetermine whether the given set is "full" (meaning it contains all possible values).static ProtocolReturns the enum constant of this class with the specified name.static Protocol[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SSLv2
The SSL version 2 protocol. -
SSLv3
The SSL version 3 protocol. -
TLSv1
The TLS version 1.0 protocol. -
TLSv1_1
The TLS version 1.1 protocol. Note that there are no cipher suites which are specifically defined in this protocol. -
TLSv1_2
The TLS version 1.2 protocol. -
TLSv1_3
The TLS version 1.3 protocol. -
SSLv2Hello
The SSL version 2 hello protocol
-
-
Field Details
-
name
-
-
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
-
forName
Gets an enum item for given protocol name.- Parameters:
name- the protocol name- Returns:
- an enum item
-
isFull
Determine whether the given set is "full" (meaning it contains all possible values).- Parameters:
protocols- the set- Returns:
trueif the set is full,falseotherwise
-
in
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
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
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
-