public static enum X509Util.ClientAuth extends Enum<X509Util.ClientAuth>
Modifier and Type | Method and Description |
---|---|
static X509Util.ClientAuth |
fromPropertyValue(String prop)
Converts a property value to a ClientAuth enum.
|
io.netty.handler.ssl.ClientAuth |
toNettyClientAuth() |
static X509Util.ClientAuth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static X509Util.ClientAuth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final X509Util.ClientAuth NONE
public static final X509Util.ClientAuth WANT
public static final X509Util.ClientAuth NEED
public static X509Util.ClientAuth[] values()
for (X509Util.ClientAuth c : X509Util.ClientAuth.values()) System.out.println(c);
public static X509Util.ClientAuth valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static X509Util.ClientAuth fromPropertyValue(String prop)
ClientAuth.NEED
.prop
- the property string.IllegalArgumentException
- if the property value is not "NONE", "WANT", "NEED", or empty/null.public io.netty.handler.ssl.ClientAuth toNettyClientAuth()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.