public static enum DOF.SecurityDesire extends java.lang.Enum<DOF.SecurityDesire>
DOFConnection
and servers DOFServer
.
For a connection and server to be compatible, they must have compatible security desires; otherwise, the connection fails.Enum Constant and Description |
---|
ANY
Indicates that the connection or server accepts any of the other security levels.
|
NOT_SECURE
Indicates that the connection or server must not be secure.
|
SECURE
Indicates that both authentication and encryption are required.
|
SECURE_ANY
Indicates that authentication is required, and encryption is allowed but not required.
|
SECURE_AUTHENTICATE_ONLY
Indicates that authentication is required, but encryption is not allowed.
|
Modifier and Type | Method and Description |
---|---|
static DOF.SecurityDesire |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DOF.SecurityDesire[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DOF.SecurityDesire ANY
public static final DOF.SecurityDesire NOT_SECURE
public static final DOF.SecurityDesire SECURE_ANY
public static final DOF.SecurityDesire SECURE_AUTHENTICATE_ONLY
public static final DOF.SecurityDesire SECURE
public static DOF.SecurityDesire[] values()
for (DOF.SecurityDesire c : DOF.SecurityDesire.values()) System.out.println(c);
public static DOF.SecurityDesire valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null