@Deprecated public enum TLSVersion extends Enum<TLSVersion>
| Enum Constant and Description |
|---|
SSLv3
Deprecated.
SSLv3
|
TLS
Deprecated.
TLS 1.0
|
TLSv1
Deprecated.
TLS 1.0
|
TLSv1_1
Deprecated.
TLS 1.1 (may not be available with all Java versions)
|
TLSv1_2
Deprecated.
TLS 1.2 (may not be available with all Java versions)
|
| Modifier and Type | Method and Description |
|---|---|
static TLSVersion |
fromString(String tlsVersion)
Deprecated.
Returns the
TLSVersion for this String. |
String |
getTlsVersion()
Deprecated.
|
static TLSVersion |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static TLSVersion[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TLSVersion SSLv3
public static final TLSVersion TLS
public static final TLSVersion TLSv1
public static final TLSVersion TLSv1_1
public static final TLSVersion TLSv1_2
public static TLSVersion[] values()
for (TLSVersion c : TLSVersion.values()) System.out.println(c);
public static TLSVersion 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 String getTlsVersion()
public static TLSVersion fromString(String tlsVersion)
TLSVersion for this String.
If the String is invalid, it will return nulltlsVersion - the TLS version stringTLSVersionCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.