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
|
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.
|
void |
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 void validatePassword(LDAPObject user, String password) throws AuthenticationException
IdentityStorevalidatePassword in interface IdentityStoreuser - Keycloak userpassword - Ldap passwordAuthenticationException - if authentication is not successfulpublic void updatePassword(LDAPObject user, String password)
IdentityStoreupdatePassword in interface IdentityStoreuser - Keycloak userpassword - Ldap passwordprotected StringBuilder createIdentityTypeSearchFilter(LDAPQuery identityQuery)
protected BasicAttributes extractAttributes(LDAPObject ldapObject, boolean isCreate)
protected String getEntryIdentifier(LDAPObject ldapObject)
Copyright © 2016 JBoss by Red Hat. All rights reserved.