public enum SSLProtocol extends java.lang.Enum<SSLProtocol>
Enum Constant and Description |
---|
SSL |
SSLv2 |
SSLv2Hello |
SSLv3 |
TLS |
TLSv1 |
TLSv1_1 |
TLSv1_2 |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getStringArray(SSLProtocol... values)
Returns a string array of the protocols.
|
java.lang.String |
toProtocolString()
Returns the string expected to specify this protocol
|
static SSLProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SSLProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SSLProtocol TLS
public static final SSLProtocol TLSv1
public static final SSLProtocol TLSv1_1
public static final SSLProtocol TLSv1_2
public static final SSLProtocol SSL
public static final SSLProtocol SSLv2
public static final SSLProtocol SSLv2Hello
public static final SSLProtocol SSLv3
public static SSLProtocol[] values()
for (SSLProtocol c : SSLProtocol.values()) System.out.println(c);
public static SSLProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NotNull public static java.lang.String[] getStringArray(SSLProtocol... values)
values
- The values to convert to an array of strings@NotNull public java.lang.String toProtocolString()