Enum SslClientAuthMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SslClientAuthMode>

    public enum SslClientAuthMode
    extends java.lang.Enum<SslClientAuthMode>
    Indicates the state of the SSLEngine with respect to client authentication.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE
      Indicates that the SSLEngine will not request client authentication.
      OPTIONAL
      Indicates that the SSLEngine will request client authentication.
      REQUIRE
      Indicates that the SSLEngine will require client authentication.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SslClientAuthMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SslClientAuthMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NONE

        public static final SslClientAuthMode NONE
        Indicates that the SSLEngine will not request client authentication.
      • OPTIONAL

        public static final SslClientAuthMode OPTIONAL
        Indicates that the SSLEngine will request client authentication.
      • REQUIRE

        public static final SslClientAuthMode REQUIRE
        Indicates that the SSLEngine will require client authentication.
    • Method Detail

      • values

        public static SslClientAuthMode[] 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 (SslClientAuthMode c : SslClientAuthMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SslClientAuthMode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null