Package de.xima.fc.ldap
Class LdapConnectionConfig
- java.lang.Object
-
- de.xima.fc.ldap.LdapConnectionConfig
-
- All Implemented Interfaces:
Serializable
public final class LdapConnectionConfig extends Object implements Serializable
Model representing the configuration for an LDAP connection.- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLdapConnectionConfig.Builderstatic classLdapConnectionConfig.TlsScope
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LdapConnectionConfig.Builderbuilder()booleanequals(Object o)StringgetBindDN()(Optional) Returns the bind DN (Distinguished Name).StringgetBindPassword()(Optional) Returns the bind password.IntegergetHopCount()Returns the referral hop count for the connection.StringgetHost()Returns the LDAP server host.intgetPort()Returns the LDAP server port.LdapConnectionConfig.TlsScopegetTlsScope()Returns the TLS scope for the connection.inthashCode()booleanisUseTls()Indicates whether TLS/SSL is used for the connection.StringtoString()
-
-
-
Method Detail
-
isUseTls
public boolean isUseTls()
Indicates whether TLS/SSL is used for the connection. If true, the connection will be established using TLS/SSL. In this casegetTlsScope()must not return null.- Returns:
- True if TLS/SSL is used, false otherwise.
- See Also:
getTlsScope()
-
builder
public static LdapConnectionConfig.Builder builder()
-
getHost
public String getHost()
Returns the LDAP server host.
-
getPort
public int getPort()
Returns the LDAP server port.
-
getBindDN
@Nullable public String getBindDN()
(Optional) Returns the bind DN (Distinguished Name).
-
getBindPassword
@Nullable public String getBindPassword()
(Optional) Returns the bind password.
-
getHopCount
@Nullable public Integer getHopCount()
Returns the referral hop count for the connection.
-
getTlsScope
@Nullable public LdapConnectionConfig.TlsScope getTlsScope()
Returns the TLS scope for the connection. This is only relevant ifisUseTls()returns true.- See Also:
isUseTls()
-
-