Enum ConnectionProtocolPolicy
- java.lang.Object
-
- java.lang.Enum<ConnectionProtocolPolicy>
-
- org.opends.guitools.controlpanel.datamodel.ConnectionProtocolPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<ConnectionProtocolPolicy>
public enum ConnectionProtocolPolicy extends Enum<ConnectionProtocolPolicy>
Policy to follow to choose the protocol to be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description USE_ADMINForce to use the Administration Connector.USE_LDAPForce to use LDAP.USE_LDAPSForce to use LDAPs.USE_LESS_SECURE_AVAILABLEUse the less secure available (LDAP, and then LDAPs).USE_MOST_SECURE_AVAILABLEUse the most secure available (LDAPs, StartTLS and finally LDAP).USE_STARTTLSForce to use Start TLS.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionProtocolPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static ConnectionProtocolPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USE_STARTTLS
public static final ConnectionProtocolPolicy USE_STARTTLS
Force to use Start TLS.
-
USE_LDAP
public static final ConnectionProtocolPolicy USE_LDAP
Force to use LDAP.
-
USE_LDAPS
public static final ConnectionProtocolPolicy USE_LDAPS
Force to use LDAPs.
-
USE_ADMIN
public static final ConnectionProtocolPolicy USE_ADMIN
Force to use the Administration Connector.
-
USE_MOST_SECURE_AVAILABLE
public static final ConnectionProtocolPolicy USE_MOST_SECURE_AVAILABLE
Use the most secure available (LDAPs, StartTLS and finally LDAP).
-
USE_LESS_SECURE_AVAILABLE
public static final ConnectionProtocolPolicy USE_LESS_SECURE_AVAILABLE
Use the less secure available (LDAP, and then LDAPs).
-
-
Method Detail
-
values
public static ConnectionProtocolPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConnectionProtocolPolicy c : ConnectionProtocolPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionProtocolPolicy 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
-
-