Package org.apache.hc.core5.http.ssl
Enum TLS
- All Implemented Interfaces:
Serializable
,Comparable<TLS>
Supported
TLS
protocol versions.- Since:
- 5.0
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
excludeWeak
(String... protocols) getId()
Gets the ID.Gets the version.boolean
greaterEquals
(ProtocolVersion protocolVersion) boolean
isComparable
(ProtocolVersion protocolVersion) boolean
isSame
(ProtocolVersion protocolVersion) static boolean
Check if a given protocol is considered secure and is enabled by default.boolean
lessEquals
(ProtocolVersion protocolVersion) static ProtocolVersion
static TLS
Returns the enum constant of this type with the specified name.static TLS[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
V_1_0
-
V_1_1
-
V_1_2
-
V_1_3
-
-
Field Details
-
id
-
version
-
-
Constructor Details
-
TLS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isSame
-
isComparable
-
getId
Gets the ID.- Returns:
- the ID.
- Since:
- 5.2
-
getVersion
Gets the version.- Returns:
- the version.
- Since:
- 5.2
-
greaterEquals
-
lessEquals
-
parse
- Throws:
ParseException
-
excludeWeak
-
isSecure
Check if a given protocol is considered secure and is enabled by default.- Returns:
true
if the given protocol is secure and enabled, otherwise returnfalse
.- Since:
- 5.2
-