Package software.amazon.awssdk.crt.io
Enum TlsContextOptions.TlsVersions
- java.lang.Object
-
- java.lang.Enum<TlsContextOptions.TlsVersions>
-
- software.amazon.awssdk.crt.io.TlsContextOptions.TlsVersions
-
- All Implemented Interfaces:
Serializable
,Comparable<TlsContextOptions.TlsVersions>
- Enclosing class:
- TlsContextOptions
public static enum TlsContextOptions.TlsVersions extends Enum<TlsContextOptions.TlsVersions>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TlsContextOptions.TlsVersions
valueOf(String name)
Returns the enum constant of this type with the specified name.static TlsContextOptions.TlsVersions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SSLv3
public static final TlsContextOptions.TlsVersions SSLv3
SSL v3. This should almost never be used.
-
TLSv1
public static final TlsContextOptions.TlsVersions TLSv1
-
TLSv1_1
public static final TlsContextOptions.TlsVersions TLSv1_1
TLS 1.1
-
TLSv1_2
public static final TlsContextOptions.TlsVersions TLSv1_2
TLS 1.2
-
TLSv1_3
public static final TlsContextOptions.TlsVersions TLSv1_3
TLS 1.3
-
TLS_VER_SYS_DEFAULTS
public static final TlsContextOptions.TlsVersions TLS_VER_SYS_DEFAULTS
Use whatever the system default is. This is usually the best option, as it will be automatically updated as the underlying OS or platform changes.
-
-
Method Detail
-
values
public static TlsContextOptions.TlsVersions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TlsContextOptions.TlsVersions c : TlsContextOptions.TlsVersions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TlsContextOptions.TlsVersions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-