public class LDAPIdentityStore extends Object implements IdentityStore
| Constructor and Description |
|---|
LDAPIdentityStore(LDAPConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(LDAPObject ldapObject)
Persists the specified IdentityType
|
protected void |
applyCondition(StringBuilder filter,
Condition condition) |
int |
countQueryResults(LDAPQuery identityQuery) |
protected StringBuilder |
createIdentityTypeSearchFilter(LDAPQuery identityQuery) |
protected BasicAttributes |
extractAttributes(LDAPObject ldapObject,
boolean isCreate) |
List<LDAPObject> |
fetchQueryResults(LDAPQuery identityQuery) |
LDAPConfig |
getConfig()
Returns the configuration for this IdentityStore instance
|
protected String |
getEntryIdentifier(LDAPObject ldapObject) |
void |
remove(LDAPObject ldapObject)
Removes the specified IdentityType
|
void |
update(LDAPObject ldapObject)
Updates the specified IdentityType
|
void |
updatePassword(LDAPObject user,
String password)
Updates the specified credential value.
|
boolean |
validatePassword(LDAPObject user,
String password)
Validates the specified credentials.
|
public LDAPIdentityStore(LDAPConfig config)
public LDAPConfig getConfig()
IdentityStoregetConfig in interface IdentityStorepublic void add(LDAPObject ldapObject)
IdentityStoreadd in interface IdentityStorepublic void update(LDAPObject ldapObject)
IdentityStoreupdate in interface IdentityStorepublic void remove(LDAPObject ldapObject)
IdentityStoreremove in interface IdentityStorepublic List<LDAPObject> fetchQueryResults(LDAPQuery identityQuery)
fetchQueryResults in interface IdentityStorepublic int countQueryResults(LDAPQuery identityQuery)
countQueryResults in interface IdentityStorepublic boolean validatePassword(LDAPObject user, String password)
IdentityStorevalidatePassword in interface IdentityStoreuser - Keycloak userpassword - Ldap passwordpublic void updatePassword(LDAPObject user, String password)
IdentityStoreupdatePassword in interface IdentityStoreuser - Keycloak userpassword - Ldap passwordprotected StringBuilder createIdentityTypeSearchFilter(LDAPQuery identityQuery)
protected void applyCondition(StringBuilder filter, Condition condition)
protected BasicAttributes extractAttributes(LDAPObject ldapObject, boolean isCreate)
protected String getEntryIdentifier(LDAPObject ldapObject)
Copyright © 2015 JBoss by Red Hat. All rights reserved.