@CredentialHandlers(value=LDAPPlainTextPasswordCredentialHandler.class) public class LDAPIdentityStore extends AbstractIdentityStore<LDAPIdentityStoreConfiguration> implements CredentialStore<LDAPIdentityStoreConfiguration>
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_ATTRIBUTE_VALUE |
static String |
ENTRY_DN_ATTRIBUTE_NAME |
| Constructor and Description |
|---|
LDAPIdentityStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributedType(IdentityContext context,
AttributedType attributedType) |
protected void |
addToParentAsMember(AttributedType attributedType) |
protected <V extends IdentityType> |
createIdentityTypeSearchFilter(IdentityQuery<V> identityQuery,
LDAPMappingConfiguration ldapEntryConfig) |
protected BasicAttributes |
extractAttributes(AttributedType attributedType,
boolean isCreate) |
<V extends IdentityType> |
fetchQueryResults(IdentityContext context,
IdentityQuery<V> identityQuery) |
<V extends Relationship> |
fetchQueryResults(IdentityContext context,
RelationshipQuery<V> query) |
String |
getBindingDN(AttributedType attributedType,
boolean appendBaseDN) |
protected String |
getEntryIdentifier(AttributedType attributedType) |
LDAPOperationManager |
getOperationManager() |
void |
removeAttributedType(IdentityContext context,
AttributedType attributedType) |
void |
removeCredential(IdentityContext context,
Account account,
Class<? extends CredentialStorage> storageClass)
Removes all credentials stored by a certain
CredentialStorage associated
with the given Account. |
protected void |
removeCredentials(IdentityContext context,
Account account) |
protected void |
removeFromRelationships(IdentityContext context,
IdentityType identityType) |
<T extends CredentialStorage> |
retrieveCredentials(IdentityContext context,
Account account,
Class<T> storageClass)
Returns a list of all credential state of the specified
T, for the specified Account. |
<T extends CredentialStorage> |
retrieveCurrentCredential(IdentityContext context,
Account account,
Class<T> storageClass)
Returns the currently active credential state of the specified
T, for the specified Account. |
void |
setup(LDAPIdentityStoreConfiguration config)
Sets the configuration and context in which the IdentityStore will execute its operations
|
void |
storeCredential(IdentityContext context,
Account account,
CredentialStorage storage)
Stores the specified credential state.
|
void |
updateAttributedType(IdentityContext context,
AttributedType attributedType) |
add, countQueryResults, countQueryResults, getConfig, remove, update, updateCredential, validateCredentialsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, countQueryResults, countQueryResults, getConfig, remove, update, updateCredential, validateCredentialspublic static final String EMPTY_ATTRIBUTE_VALUE
public static final String ENTRY_DN_ATTRIBUTE_NAME
public void setup(LDAPIdentityStoreConfiguration config)
IdentityStoresetup in interface IdentityStore<LDAPIdentityStoreConfiguration>setup in class AbstractIdentityStore<LDAPIdentityStoreConfiguration>public void addAttributedType(IdentityContext context, AttributedType attributedType)
addAttributedType in class AbstractIdentityStore<LDAPIdentityStoreConfiguration>public void updateAttributedType(IdentityContext context, AttributedType attributedType)
updateAttributedType in class AbstractIdentityStore<LDAPIdentityStoreConfiguration>public void removeAttributedType(IdentityContext context, AttributedType attributedType)
removeAttributedType in class AbstractIdentityStore<LDAPIdentityStoreConfiguration>protected void removeFromRelationships(IdentityContext context, IdentityType identityType)
removeFromRelationships in class AbstractIdentityStore<LDAPIdentityStoreConfiguration>public <V extends IdentityType> List<V> fetchQueryResults(IdentityContext context, IdentityQuery<V> identityQuery)
fetchQueryResults in interface IdentityStore<LDAPIdentityStoreConfiguration>public <V extends Relationship> List<V> fetchQueryResults(IdentityContext context, RelationshipQuery<V> query)
fetchQueryResults in interface IdentityStore<LDAPIdentityStoreConfiguration>public void storeCredential(IdentityContext context, Account account, CredentialStorage storage)
CredentialStorestoreCredential in interface CredentialStore<LDAPIdentityStoreConfiguration>context - The contextual invocation context.account - The account which credentials should be removed.storage - The credential storage instance to be stored.public <T extends CredentialStorage> T retrieveCurrentCredential(IdentityContext context, Account account, Class<T> storageClass)
CredentialStoreT, for the specified Account.retrieveCurrentCredential in interface CredentialStore<LDAPIdentityStoreConfiguration>context - The contextual invocation context.account - The account which credentials should be removed.storageClass - The credential storage type specifying which credential types should be removed.public <T extends CredentialStorage> List<T> retrieveCredentials(IdentityContext context, Account account, Class<T> storageClass)
CredentialStoreT, for the specified Account.retrieveCredentials in interface CredentialStore<LDAPIdentityStoreConfiguration>context - The contextual invocation context.account - The account which credentials should be removed.storageClass - The credential storage type specifying which credential types should be removed.public void removeCredential(IdentityContext context, Account account, Class<? extends CredentialStorage> storageClass)
CredentialStoreRemoves all credentials stored by a certain CredentialStorage associated
with the given Account.
removeCredential in interface CredentialStore<LDAPIdentityStoreConfiguration>context - The contextual invocation context.account - The account which credentials should be removed.storageClass - The credential storage type specifying which credential types should be removed.protected void removeCredentials(IdentityContext context, Account account)
removeCredentials in class AbstractIdentityStore<LDAPIdentityStoreConfiguration>protected <V extends IdentityType> StringBuilder createIdentityTypeSearchFilter(IdentityQuery<V> identityQuery, LDAPMappingConfiguration ldapEntryConfig)
protected BasicAttributes extractAttributes(AttributedType attributedType, boolean isCreate)
public LDAPOperationManager getOperationManager()
public String getBindingDN(AttributedType attributedType, boolean appendBaseDN)
protected void addToParentAsMember(AttributedType attributedType)
protected String getEntryIdentifier(AttributedType attributedType)
Copyright © 2014. All rights reserved.