public enum Protocol extends Enum<Protocol>
Enum Constant and Description |
---|
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.
|
TLSv1_2
The TLS version 1.2 protocol.
|
TLSv1_3
The TLS version 1.3 protocol.
|
Modifier and Type | Method and Description |
---|---|
static Protocol |
forName(String name)
Gets an enum item for given protocol name.
|
boolean |
in(Protocol... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(Protocol value1,
Protocol value2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(Protocol value1,
Protocol value2,
Protocol value3)
Determine whether this instance is equal to one of the given instances.
|
static boolean |
isFull(EnumSet<Protocol> protocols)
Determine whether the given set is "full" (meaning it contains all possible values).
|
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol SSLv2
public static final Protocol SSLv3
public static final Protocol TLSv1
public static final Protocol TLSv1_1
public static final Protocol TLSv1_2
public static final Protocol TLSv1_3
public final String name
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol 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 static Protocol forName(String name)
name
- the protocol namepublic static boolean isFull(EnumSet<Protocol> protocols)
protocols
- the settrue
if the set is full, false
otherwisepublic boolean in(Protocol value1, Protocol value2)
value1
- the first instancevalue2
- the second instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(Protocol value1, Protocol value2, Protocol value3)
value1
- the first instancevalue2
- the second instancevalue3
- the third instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(Protocol... values)
values
- the values to match againsttrue
if one of the instances matches this one, false
otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.