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 LdapConnectionParameters
build()
Builds theLdapConnectionParameters
.abstract LdapConnectionParameters.Builder
ldapPassword
(char[] ldapPassword) Sets the LDAP password.abstract LdapConnectionParameters.Builder
ldapServers
(Set<org.forgerock.openam.ldap.LDAPURL> ldapServers) Sets the LDAP servers.abstract LdapConnectionParameters.Builder
Sets the LDAP user.abstract LdapConnectionParameters.Builder
mtlsEnabled
(boolean mtlsEnabled) Sets whether to use mutual TLS.abstract LdapConnectionParameters.Builder
mtlsSecretLabel
(String mtlsSecretLabel) Sets the mutual TLS secret label.abstract LdapConnectionParameters.Builder
Sets the realm.abstract LdapConnectionParameters.Builder
startSearchLocation
(String startSearchLocation) Sets the start search location.abstract LdapConnectionParameters.Builder
useStartTls
(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
-