public static enum SslEngineFactory.Mode extends Enum<SslEngineFactory.Mode>
SSLEngine
operating modes.Enum Constant and Description |
---|
CLIENT
Indicates the client.
|
SERVER
Indicates the server.
|
Modifier and Type | Method and Description |
---|---|
static SslEngineFactory.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SslEngineFactory.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SslEngineFactory.Mode CLIENT
public static final SslEngineFactory.Mode SERVER
public static SslEngineFactory.Mode[] values()
for (SslEngineFactory.Mode c : SslEngineFactory.Mode.values()) System.out.println(c);
public static SslEngineFactory.Mode 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 null