Package org.miaixz.bus.socket.security
Enum Class ClientAuth
- All Implemented Interfaces:
Serializable,Comparable<ClientAuth>,Constable
配置引擎请求客户端验证 此选项只对服务器模式的引擎有用
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientAuthReturns the enum constant of this class with the specified name.static ClientAuth[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
不需要客户端验证 -
OPTIONAL
请求的客户端验证 如果设置了此选项并且客户端选择不提供其自身的验证信息,则协商将会继续 -
REQUIRE
必须的客户端验证 如果设置了此选项并且客户端选择不提供其自身的验证信息,则协商将会停止且引擎将开始它的关闭过程
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-