Class LdapConnectionParameters.Builder
java.lang.Object
org.forgerock.am.identity.application.model.LdapConnectionParameters.Builder
- Enclosing class:
- LdapConnectionParameters
A builder for
LdapConnectionParameters.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract LdapConnectionParametersbuild()Builds theLdapConnectionParameters.abstract LdapConnectionParameters.BuilderldapPassword(char[] ldapPassword) Sets the LDAP password.abstract LdapConnectionParameters.BuilderldapServers(Set<org.forgerock.openam.ldap.LDAPURL> ldapServers) Sets the LDAP servers.abstract LdapConnectionParameters.BuilderSets the LDAP user.abstract LdapConnectionParameters.BuildermtlsEnabled(boolean mtlsEnabled) Sets whether to use mutual TLS.abstract LdapConnectionParameters.BuildermtlsSecretLabel(String mtlsSecretLabel) Sets the mutual TLS secret label.abstract LdapConnectionParameters.BuilderSets the realm.abstract LdapConnectionParameters.BuilderstartSearchLocation(String startSearchLocation) Sets the start search location.abstract LdapConnectionParameters.BuilderuseStartTls(boolean useStartTls) Sets whether to use StartTLS.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ldapServers
public abstract LdapConnectionParameters.Builder ldapServers(Set<org.forgerock.openam.ldap.LDAPURL> ldapServers) Sets the LDAP servers.- Parameters:
ldapServers- the LDAP servers- Returns:
- this builder
-
ldapUser
Sets the LDAP user.- Parameters:
ldapUser- the LDAP user- Returns:
- this builder
-
ldapPassword
Sets the LDAP password.- Parameters:
ldapPassword- the LDAP password- Returns:
- this builder
-
startSearchLocation
Sets the start search location.- Parameters:
startSearchLocation- the start search location- Returns:
- this builder
-
useStartTls
Sets whether to use StartTLS.- Parameters:
useStartTls- whether to use StartTLS- Returns:
- this builder
-
mtlsEnabled
Sets whether to use mutual TLS.- Parameters:
mtlsEnabled- whether to use mutual TLS- Returns:
- this builder
-
mtlsSecretLabel
Sets the mutual TLS secret label.- Parameters:
mtlsSecretLabel- the mutual TLS secret label- Returns:
- this builder
-
realm
Sets the realm.- Parameters:
realm- the realm- Returns:
- this builder
-
build
Builds theLdapConnectionParameters.- Returns:
- the
LdapConnectionParameters
-