public enum ConnectionSecurity extends Enum<ConnectionSecurity>
Enum Constant and Description |
---|
NONE
LDAP client connection use no security.
|
SSL
LDAP client connection uses SSL for security.
|
STARTTLS
LDAP client connection uses StartTLS for security.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionSecurity |
connectionSecurity(boolean useSsl,
boolean useStartTls)
Returns the connection security equivalent to the provided
useSsl and
useStartTls boolean parameters. |
abstract String |
getProtocolScheme()
Returns the protocol scheme associated to this connection security.
|
abstract boolean |
isSecure()
Returns whether this connection security is considered secure.
|
static ConnectionSecurity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionSecurity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionSecurity NONE
public static final ConnectionSecurity STARTTLS
public static final ConnectionSecurity SSL
public static ConnectionSecurity[] values()
for (ConnectionSecurity c : ConnectionSecurity.values()) System.out.println(c);
public static ConnectionSecurity 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 nullpublic abstract boolean isSecure()
public abstract String getProtocolScheme()
public static ConnectionSecurity connectionSecurity(boolean useSsl, boolean useStartTls)
useSsl
and
useStartTls
boolean parameters.useSsl
- whether to use SSLuseStartTls
- whether to use startTLSCopyright 2010-2022 ForgeRock AS.