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) |
boolean |
greaterEquals(ProtocolVersion protocolVersion) |
boolean |
isComparable(ProtocolVersion protocolVersion) |
boolean |
isSame(ProtocolVersion protocolVersion) |
boolean |
lessEquals(ProtocolVersion protocolVersion) |
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 boolean greaterEquals(ProtocolVersion protocolVersion)
public boolean lessEquals(ProtocolVersion protocolVersion)
public static ProtocolVersion parse(String s) throws ParseException
ParseException
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.