Enum Class TlsVersion

java.lang.Object
java.lang.Enum<TlsVersion>
org.miaixz.bus.core.net.tls.TlsVersion
All Implemented Interfaces:
Serializable, Comparable<TlsVersion>, Constable

public enum TlsVersion extends Enum<TlsVersion>
在协商安全插槽时可以提供的TLS版本 查看# setEnabledProtocols
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • TLSv1_3

      public static final TlsVersion TLSv1_3
      2016年版本
    • TLSv1_2

      public static final TlsVersion TLSv1_2
      2008年版本
    • TLSv1_1

      public static final TlsVersion TLSv1_1
      2006年版本
    • TLSv1

      public static final TlsVersion TLSv1
      1999年版本
    • SSLv3

      public static final TlsVersion SSLv3
      1996年版本
  • Field Details

    • javaName

      public final String javaName
  • Method Details

    • values

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

      public static TlsVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • forJavaName

      public static TlsVersion forJavaName(String javaName)
    • forJavaNames

      public static List<TlsVersion> forJavaNames(String... tlsVersions)
    • javaName

      public String javaName()