Enum Class ClientAuth

java.lang.Object
java.lang.Enum<ClientAuth>
org.aoju.bus.socket.security.ClientAuth
All Implemented Interfaces:
Serializable, Comparable<ClientAuth>, Constable

public enum ClientAuth extends Enum<ClientAuth>
配置引擎请求客户端验证 此选项只对服务器模式的引擎有用
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • NONE

      public static final ClientAuth NONE
      不需要客户端验证
    • OPTIONAL

      public static final ClientAuth OPTIONAL
      请求的客户端验证 如果设置了此选项并且客户端选择不提供其自身的验证信息,则协商将会继续
    • REQUIRE

      public static final ClientAuth REQUIRE
      必须的客户端验证 如果设置了此选项并且客户端选择不提供其自身的验证信息,则协商将会停止且引擎将开始它的关闭过程
  • Method Details

    • values

      public static ClientAuth[] 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 ClientAuth 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