public enum TLS extends Enum<TLS>
TLS
protocol versions.Modifier and Type | Field and Description |
---|---|
String |
id |
ProtocolVersion |
version |
Modifier and Type | Method and Description |
---|---|
static String[] |
excludeWeak(String... protocols) |
String |
getId()
Gets the ID.
|
ProtocolVersion |
getVersion()
Gets the version.
|
boolean |
greaterEquals(ProtocolVersion protocolVersion) |
boolean |
isComparable(ProtocolVersion protocolVersion) |
boolean |
isSame(ProtocolVersion protocolVersion) |
static boolean |
isSecure(String protocol)
Check if a given protocol is considered secure and is enabled by default.
|
boolean |
lessEquals(ProtocolVersion protocolVersion) |
static ProtocolVersion |
parse(CharSequence buffer,
Tokenizer.Cursor cursor,
Tokenizer.Delimiter delimiterPredicate) |
static ProtocolVersion |
parse(String s) |
static TLS |
valueOf(String name)
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.
|
public static final TLS V_1_0
public static final TLS V_1_1
public static final TLS V_1_2
public static final TLS V_1_3
public final String id
public final ProtocolVersion version
public static TLS[] values()
for (TLS c : TLS.values()) System.out.println(c);
public static TLS valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isSame(ProtocolVersion protocolVersion)
public boolean isComparable(ProtocolVersion protocolVersion)
public String getId()
public ProtocolVersion getVersion()
public boolean greaterEquals(ProtocolVersion protocolVersion)
public boolean lessEquals(ProtocolVersion protocolVersion)
@Internal public static ProtocolVersion parse(CharSequence buffer, Tokenizer.Cursor cursor, Tokenizer.Delimiter delimiterPredicate) throws ParseException
ParseException
public static ProtocolVersion parse(String s) throws ParseException
ParseException
public static boolean isSecure(String protocol)
true
if the given protocol is secure and enabled, otherwise return false
.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.