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)
Sets the attribute name used as the unique identifier for entries.
|
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. |
protected LDAPStoreConfigurationBuilder |
readFrom(LDAPIdentityStoreConfiguration configuration)
Reads a pre-created configuration.
|
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, 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)
Sets the attribute name used as the unique identifier for entries.
uniqueIdentifierAttributeName - public LDAPMappingConfigurationBuilder mapping(Class<? extends AttributedType> attributedType)
Maps a specific AttributedType.
attributedType - public LDAPStoreConfigurationBuilder connectionProperties(Properties connectionProperties)
Set additional connection properties.
activeDirectory - 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.