Enum Class X509Util.ClientAuth
- All Implemented Interfaces:
Serializable
,Comparable<X509Util.ClientAuth>
,Constable
- Enclosing class:
- X509Util
Enum specifying the client auth requirement of server-side TLS sockets created by this
X509Util.
- NONE - do not request a client certificate.
- WANT - request a client certificate, but allow anonymous clients to connect.
- NEED - require a client certificate, disconnect anonymous clients.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hbase.thirdparty.io.netty.handler.ssl.ClientAuth
-
Constructor Summary
ModifierConstructorDescriptionprivate
ClientAuth
(org.apache.hbase.thirdparty.io.netty.handler.ssl.ClientAuth nettyAuth) -
Method Summary
Modifier and TypeMethodDescriptionstatic X509Util.ClientAuth
fromPropertyValue
(String prop) Converts a property value to a ClientAuth enum.org.apache.hbase.thirdparty.io.netty.handler.ssl.ClientAuth
static X509Util.ClientAuth
Returns the enum constant of this class with the specified name.static X509Util.ClientAuth[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
WANT
-
NEED
-
-
Field Details
-
nettyAuth
-
-
Constructor Details
-
ClientAuth
-
-
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
-
fromPropertyValue
Converts a property value to a ClientAuth enum. If the input string is empty or null, returnsClientAuth.NEED
.- Parameters:
prop
- the property string.- Returns:
- the ClientAuth.
- Throws:
IllegalArgumentException
- if the property value is not "NONE", "WANT", "NEED", or empty/null.
-
toNettyClientAuth
-