Enum TlsProtocolVersion

java.lang.Object
java.lang.Enum<TlsProtocolVersion>
org.robovm.apple.security.TlsProtocolVersion
All Implemented Interfaces:
Serializable, Comparable<TlsProtocolVersion>, ValuedEnum

public enum TlsProtocolVersion
extends Enum<TlsProtocolVersion>
implements ValuedEnum
  • Enum Constant Details

    • TLSv10

      @Deprecated public static final TlsProtocolVersion TLSv10
      Deprecated.
      Deprecated in iOS 15.0. Use tls_protocol_version_TLSv12 or tls_protocol_version_TLSv13 instead.
      Since:
      Available in iOS 13.0 and later.
    • TLSv11

      @Deprecated public static final TlsProtocolVersion TLSv11
      Deprecated.
      Deprecated in iOS 15.0. Use tls_protocol_version_TLSv12 or tls_protocol_version_TLSv13 instead.
      Since:
      Available in iOS 13.0 and later.
    • TLSv12

      public static final TlsProtocolVersion TLSv12
    • TLSv13

      public static final TlsProtocolVersion TLSv13
    • DTLSv10

      @Deprecated public static final TlsProtocolVersion DTLSv10
      Deprecated.
      Deprecated in iOS 15.0. Use tls_protocol_version_DTLSv12 instead.
      Since:
      Available in iOS 13.0 and later.
    • DTLSv12

      public static final TlsProtocolVersion DTLSv12
  • Method Details

    • values

      public static TlsProtocolVersion[] 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 TlsProtocolVersion 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
    • value

      public long value()
      Specified by:
      value in interface ValuedEnum
    • valueOf

      public static TlsProtocolVersion valueOf​(long n)
      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:
      n - 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