public class LDAPStoreConfigurationBuilder extends IdentityStoreConfigurationBuilder<LDAPIdentityStoreConfiguration,LDAPStoreConfigurationBuilder>
IdentityStoreConfigurationBuilder implementation which knows how to build a
LDAPIdentityStoreConfiguration.
| Constructor and Description |
|---|
LDAPStoreConfigurationBuilder(IdentityStoresConfigurationBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
LDAPStoreConfigurationBuilder |
activeDirectory(boolean activeDirectory)
Indicates if the underlying server is a Microsft Activde Directory.
|
LDAPStoreConfigurationBuilder |
baseDN(String baseDN)
Sets the base DN.
|
LDAPStoreConfigurationBuilder |
bindCredential(String bindCredential)
Sets the credential for the
bindDN used to connect to the LDAP server. |
LDAPStoreConfigurationBuilder |
bindDN(String bindDN)
Sets the DN used to connect to the LDAP server.
|
LDAPStoreConfigurationBuilder |
connectionProperties(Properties connectionProperties)
Set additional connection properties.
|
protected LDAPIdentityStoreConfiguration |
create()
Creates a new configuration.
|
LDAPMappingConfigurationBuilder |
mapping(Class<? extends AttributedType> attributedType)
Maps a specific
AttributedType. |
LDAPStoreConfigurationBuilder |
pagination(boolean pagination)
Indicates if pagination will be used for searching identity objects.
|
protected LDAPStoreConfigurationBuilder |
readFrom(LDAPIdentityStoreConfiguration configuration)
Reads a pre-created configuration.
|
LDAPStoreConfigurationBuilder |
uniqueIdentifierAttributeName(String uniqueIdentifierAttributeName)
Name of unique identifier attribute (ID) which may differ in various LDAP servers.
|
LDAPStoreConfigurationBuilder |
url(String url)
Configures the URL of the LDAP server.
|
protected void |
validate()
Validates the internal state.
|
add, addContextInitializer, addCredentialHandler, file, getContextInitializers, getCredentialHandlerProperties, getCredentialHandlers, getGlobalRelationshipTypes, getSelfRelationshipTypes, getSupportedTypes, getUnsupportedTypes, isSupportAttributes, isSupportCredentials, isSupportPermissions, jpa, ldap, setCredentialHandlerProperty, supportAllFeatures, supportAttributes, supportCredentials, supportGlobalRelationship, supportPermissions, supportSelfRelationship, supportType, token, unsupportTypebuild, buildAll, namedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, buildAll, namedpublic LDAPStoreConfigurationBuilder(IdentityStoresConfigurationBuilder builder)
public LDAPStoreConfigurationBuilder url(String url)
Configures the URL of the LDAP server. The URL should be in the format ldap://ldapserver.com:389.
url - public LDAPStoreConfigurationBuilder baseDN(String baseDN)
Sets the base DN.
baseDN - public LDAPStoreConfigurationBuilder bindDN(String bindDN)
Sets the DN used to connect to the LDAP server.
bindDN - public LDAPStoreConfigurationBuilder bindCredential(String bindCredential)
Sets the credential for the bindDN used to connect to the LDAP server.
bindCredential - public LDAPStoreConfigurationBuilder activeDirectory(boolean activeDirectory)
Indicates if the underlying server is a Microsft Activde Directory.
activeDirectory - public LDAPStoreConfigurationBuilder pagination(boolean pagination)
Indicates if pagination will be used for searching identity objects. Needs that LDAP server supports PagedResultsControl
pagination - public LDAPStoreConfigurationBuilder uniqueIdentifierAttributeName(String uniqueIdentifierAttributeName)
Name of unique identifier attribute (ID) which may differ in various LDAP servers. Will use default value LDAPConstants.ENTRY_UUID
or LDAPConstants.OBJECT_GUID for Active Directory if not provided in configuration
uniqueIdentifierAttributeName - public LDAPMappingConfigurationBuilder mapping(Class<? extends AttributedType> attributedType)
Maps a specific AttributedType.
attributedType - public LDAPStoreConfigurationBuilder connectionProperties(Properties connectionProperties)
Set additional connection properties.
protected LDAPIdentityStoreConfiguration create()
BuilderCreates a new configuration.
create in class Builder<LDAPIdentityStoreConfiguration>protected void validate()
BuilderValidates the internal state.
protected LDAPStoreConfigurationBuilder readFrom(LDAPIdentityStoreConfiguration configuration)
BuilderReads a pre-created configuration.
readFrom in class IdentityStoreConfigurationBuilder<LDAPIdentityStoreConfiguration,LDAPStoreConfigurationBuilder>Copyright © 2014. All rights reserved.