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()
IdentityStore
getConfig
in interface IdentityStore
public void add(LDAPObject ldapObject)
IdentityStore
add
in interface IdentityStore
public void update(LDAPObject ldapObject)
IdentityStore
update
in interface IdentityStore
public void remove(LDAPObject ldapObject)
IdentityStore
remove
in interface IdentityStore
public List<LDAPObject> fetchQueryResults(LDAPQuery identityQuery)
fetchQueryResults
in interface IdentityStore
public int countQueryResults(LDAPQuery identityQuery)
countQueryResults
in interface IdentityStore
public void validatePassword(LDAPObject user, String password) throws AuthenticationException
IdentityStore
validatePassword
in interface IdentityStore
user
- Keycloak userpassword
- Ldap passwordAuthenticationException
- if authentication is not successfulpublic void updatePassword(LDAPObject user, String password)
IdentityStore
updatePassword
in interface IdentityStore
user
- 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.