public static enum Session.ConnectionMode extends Enum<Session.ConnectionMode>
The connection mode indicates if the socket listening for the session is secure (SSL) and certified (client certificate).
The string representation may be used to identify the connection mode in a text message.
Enum Constant and Description |
---|
CERTIFIED
A SSL connection certified by a verified client certificate.
|
LOCAL
A direct connection thru a local interface.
|
PRIVATE
A private connection.
|
SECURE
A SSL connection thru any interface.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCertified()
Asks if the connection is certified.
|
boolean |
isLocal()
Asks if the connection is local.
|
boolean |
isPrivate()
Asks if the connection is private.
|
boolean |
isSecure()
Asks if the connection is secure.
|
String |
toString() |
static Session.ConnectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Session.ConnectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Session.ConnectionMode PRIVATE
public static final Session.ConnectionMode LOCAL
public static final Session.ConnectionMode SECURE
public static final Session.ConnectionMode CERTIFIED
public static Session.ConnectionMode[] values()
for (Session.ConnectionMode c : Session.ConnectionMode.values()) System.out.println(c);
public static Session.ConnectionMode 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@CheckReturnValue public boolean isCertified()
@CheckReturnValue public boolean isLocal()
@CheckReturnValue public boolean isPrivate()
@CheckReturnValue public boolean isSecure()
public String toString()
toString
in class Enum<Session.ConnectionMode>
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.