public class LDAPIdentityStore extends Object implements IdentityStore
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_ATTRIBUTE_VALUE |
| Constructor and Description |
|---|
LDAPIdentityStore(LDAPIdentityStoreConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AttributedType attributedType)
Persists the specified IdentityType
|
protected void |
addToParentAsMember(AttributedType attributedType) |
<V extends IdentityType> |
countQueryResults(IdentityQuery<V> identityQuery) |
protected <V extends IdentityType> |
createIdentityTypeSearchFilter(IdentityQuery<V> identityQuery,
LDAPMappingConfiguration ldapEntryConfig) |
IdentityQueryBuilder |
createQueryBuilder() |
protected BasicAttributes |
extractAttributes(AttributedType attributedType,
boolean isCreate) |
<V extends IdentityType> |
fetchQueryResults(IdentityQuery<V> identityQuery) |
String |
getBindingDN(AttributedType attributedType,
boolean appendBaseDN) |
LDAPIdentityStoreConfiguration |
getConfig()
Returns the configuration for this IdentityStore instance
|
protected String |
getEntryIdentifier(AttributedType attributedType) |
LDAPUser |
getUser(String username) |
static boolean |
isNullOrEmpty(String str) |
void |
remove(AttributedType attributedType)
Removes the specified IdentityType
|
void |
update(AttributedType attributedType)
Updates the specified IdentityType
|
void |
updatePassword(LDAPUser user,
String password)
Updates the specified credential value.
|
boolean |
validatePassword(LDAPUser user,
String password)
Validates the specified credentials.
|
public static final String EMPTY_ATTRIBUTE_VALUE
public LDAPIdentityStore(LDAPIdentityStoreConfiguration config)
public LDAPIdentityStoreConfiguration getConfig()
IdentityStoregetConfig in interface IdentityStorepublic void add(AttributedType attributedType)
IdentityStoreadd in interface IdentityStorepublic void update(AttributedType attributedType)
IdentityStoreupdate in interface IdentityStorepublic void remove(AttributedType attributedType)
IdentityStoreremove in interface IdentityStorepublic <V extends IdentityType> List<V> fetchQueryResults(IdentityQuery<V> identityQuery)
fetchQueryResults in interface IdentityStorepublic <V extends IdentityType> int countQueryResults(IdentityQuery<V> identityQuery)
countQueryResults in interface IdentityStorepublic IdentityQueryBuilder createQueryBuilder()
public boolean validatePassword(LDAPUser user, String password)
IdentityStorevalidatePassword in interface IdentityStoreuser - Keycloak userpassword - Ldap passwordpublic void updatePassword(LDAPUser user, String password)
IdentityStoreupdatePassword in interface IdentityStoreuser - Keycloak userpassword - Ldap passwordprotected <V extends IdentityType> StringBuilder createIdentityTypeSearchFilter(IdentityQuery<V> identityQuery, LDAPMappingConfiguration ldapEntryConfig)
protected BasicAttributes extractAttributes(AttributedType attributedType, boolean isCreate)
public static boolean isNullOrEmpty(String str)
public String getBindingDN(AttributedType attributedType, boolean appendBaseDN)
protected void addToParentAsMember(AttributedType attributedType)
protected String getEntryIdentifier(AttributedType attributedType)
Copyright © 2015 JBoss by Red Hat. All rights reserved.