Enum TlsVersion

java.lang.Object
java.lang.Enum<TlsVersion>
software.amazon.awssdk.http.crt.TlsVersion
All Implemented Interfaces:
Serializable, Comparable<TlsVersion>

@SdkPublicApi public enum TlsVersion extends Enum<TlsVersion>
A TLS protocol version that AwsCrtHttpClient and AwsCrtAsyncHttpClient uses.

Mac-Only TLS Behavior: the default CRT TLS backend on macOS (Apple Secure Transport) does not support TLS 1.3. To use TLS_1_3 on macOS you must set the environment variable AWS_CRT_USE_NON_FIPS_TLS_13 to any non-empty value at process startup so the CRT selects its s2n-tls backend. See Mac-Only TLS Behavior for more details.

See Also:
  • Enum Constant Details

    • TLS_1_3

      public static final TlsVersion TLS_1_3
      TLS 1.3.
    • SYSTEM_DEFAULT

      public static final TlsVersion SYSTEM_DEFAULT
      The underlying OS/platform + CRT TLS default.
  • Method Details

    • values

      public static TlsVersion[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TlsVersion 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 name
      NullPointerException - if the argument is null