- java.lang.Object
-
- java.lang.Enum<ClientAuth>
-
- swim.io.ClientAuth
-
- All Implemented Interfaces:
Serializable
,Comparable<ClientAuth>
,Constable
,Debug
public enum ClientAuth extends Enum<ClientAuth> implements Debug
Transport-layer security client authentication configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static Form<ClientAuth>
form()
Returns the structuralForm
ofClientAuth
.static ClientAuth
from(String name)
Returns theClientAuth
with the given case-insensitivename
, one of none, want, or need.static ClientAuth
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClientAuth[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ClientAuth NONE
Client authentication disabled.
-
WANT
public static final ClientAuth WANT
Client authentication requested.
-
NEED
public static final ClientAuth NEED
Client authentication required.
-
-
Method Detail
-
values
public static ClientAuth[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientAuth valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
from
public static ClientAuth from(String name)
Returns theClientAuth
with the given case-insensitivename
, one of none, want, or need.- Throws:
IllegalArgumentException
- ifname
is not a validClientAuth
token.
-
form
@Kind public static Form<ClientAuth> form()
Returns the structuralForm
ofClientAuth
.
-
-