Package de.xima.fc.ldap
Class LdapConnectionConfig.Builder
- java.lang.Object
-
- de.xima.fc.ldap.LdapConnectionConfig.Builder
-
- Enclosing class:
- LdapConnectionConfig
public static class LdapConnectionConfig.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapConnectionConfig.BuilderbindDN(String bindDN)(Optional) Returns the bind DN (Distinguished Name).LdapConnectionConfig.BuilderbindPassword(String bindPassword)(Optional) Returns the bind password.LdapConnectionConfigbuild()LdapConnectionConfig.BuilderhopCount(Integer hopCount)Returns the referral hop count for the connection.LdapConnectionConfig.Builderhost(String host)Returns the LDAP server host.LdapConnectionConfig.Builderport(int port)Returns the LDAP server port.LdapConnectionConfig.BuildertlsScope(LdapConnectionConfig.TlsScope tlsScope)Returns the TLS scope for the connection.StringtoString()
-
-
-
Method Detail
-
host
public LdapConnectionConfig.Builder host(String host)
Returns the LDAP server host.- Returns:
this.
-
port
public LdapConnectionConfig.Builder port(int port)
Returns the LDAP server port.- Returns:
this.
-
bindDN
public LdapConnectionConfig.Builder bindDN(@Nullable String bindDN)
(Optional) Returns the bind DN (Distinguished Name).- Returns:
this.
-
bindPassword
public LdapConnectionConfig.Builder bindPassword(@Nullable String bindPassword)
(Optional) Returns the bind password.- Returns:
this.
-
hopCount
public LdapConnectionConfig.Builder hopCount(@Nullable Integer hopCount)
Returns the referral hop count for the connection.- Returns:
this.
-
tlsScope
public LdapConnectionConfig.Builder tlsScope(@Nullable LdapConnectionConfig.TlsScope tlsScope)
Returns the TLS scope for the connection. This is only relevant ifLdapConnectionConfig.isUseTls()returns true.- Returns:
this.- See Also:
LdapConnectionConfig.isUseTls()
-
build
public LdapConnectionConfig build()
-
-