Enum Class SSLVersion

java.lang.Object
java.lang.Enum<SSLVersion>
org.mozilla.jss.ssl.SSLVersion
All Implemented Interfaces:
Serializable, Comparable<SSLVersion>, Constable

public enum SSLVersion extends Enum<SSLVersion>
  • Enum Constant Details

    • SSL_2_0

      public static final SSLVersion SSL_2_0
      Aliases ordering is as follows: [0] - JSS name [1] - JDK name
    • SSL_3_0

      public static final SSLVersion SSL_3_0
    • TLS_1_0

      public static final SSLVersion TLS_1_0
    • TLS_1_1

      public static final SSLVersion TLS_1_1
    • TLS_1_2

      public static final SSLVersion TLS_1_2
    • TLS_1_3

      public static final SSLVersion TLS_1_3
  • Field Details

    • aliases

      private String[] aliases
    • value

      private int value
    • nssValue

      private int nssValue
  • Constructor Details

    • SSLVersion

      private SSLVersion(String alias, int value, int nssValue)
    • SSLVersion

      private SSLVersion(String[] aliases, int value, int nssValue)
  • Method Details

    • values

      public static SSLVersion[] 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 SSLVersion 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
    • alias

      public String alias()
    • jdkAlias

      public String jdkAlias()
    • aliases

      public String[] aliases()
    • value

      public int value()
    • valueOf

      public static SSLVersion valueOf(int value)
      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:
      value - 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
    • matchesAlias

      public boolean matchesAlias(String value)
    • findByAlias

      public static SSLVersion findByAlias(String alias)
    • maxSupported

      public static SSLVersion maxSupported()
    • minSupported

      public static SSLVersion minSupported()