Package org.forgerock.opendj.ldap
Enum Class ConnectionSecurity
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionSecurity>
,java.lang.constant.Constable
Indicates whether LDAP client connections should use SSL or StartTLS.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionSecurity
connectionSecurity
(boolean useSsl, boolean useStartTls) Returns the connection security equivalent to the provideduseSsl
anduseStartTls
boolean parameters.abstract String
Returns the protocol scheme associated to this connection security.abstract boolean
isSecure()
Returns whether this connection security is considered secure.static ConnectionSecurity
Returns the enum constant of this class with the specified name.static ConnectionSecurity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
LDAP client connection use no security. -
STARTTLS
LDAP client connection uses StartTLS for security. -
SSL
LDAP client connection uses SSL for security. This protocol is also known as LDAPS.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isSecure
public abstract boolean isSecure()Returns whether this connection security is considered secure.- Returns:
- whether this connection security is considered secure
-
getProtocolScheme
Returns the protocol scheme associated to this connection security.- Returns:
- the protocol scheme associated to this connection security
-
connectionSecurity
Returns the connection security equivalent to the provideduseSsl
anduseStartTls
boolean parameters.- Parameters:
useSsl
- whether to use SSLuseStartTls
- whether to use startTLS- Returns:
- the equivalent connection security value
-