Interface IdentityStore
- 
- All Known Implementing Classes:
- LDAPIdentityStore
 
 public interface IdentityStoreIdentityStore representation providing minimal SPI TODO: Rather remove this abstraction- Author:
- Boleslaw Dawidowicz, Shane Bryzak
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(LDAPObject ldapObject)Persists the specified IdentityTypevoidaddMemberToGroup(String groupDn, String memberAttrName, String value)Adds a member to a group.intcountQueryResults(LDAPQuery LDAPQuery)List<LDAPObject>fetchQueryResults(LDAPQuery LDAPQuery)LDAPConfiggetConfig()Returns the configuration for this IdentityStore instanceSet<LDAPCapabilityRepresentation>queryServerCapabilities()Query the LDAP server RootDSE and extract theLDAPCapabilityRepresentationof all supported extensions, controls and features the server announces.voidremove(LDAPObject ldapObject)Removes the specified IdentityTypevoidremoveMemberFromGroup(String groupDn, String memberAttrName, String value)Removes a member from a group.voidupdate(LDAPObject ldapObject)Updates the specified IdentityTypevoidupdatePassword(LDAPObject user, String password, LDAPOperationDecorator passwordUpdateDecorator)Updates the specified credential value.voidvalidatePassword(LDAPObject user, String password)Validates the specified credentials.
 
- 
- 
- 
Method Detail- 
getConfigLDAPConfig getConfig() Returns the configuration for this IdentityStore instance- Returns:
 
 - 
addvoid add(LDAPObject ldapObject) Persists the specified IdentityType- Parameters:
- ldapObject-
 
 - 
updatevoid update(LDAPObject ldapObject) Updates the specified IdentityType- Parameters:
- ldapObject-
 
 - 
removevoid remove(LDAPObject ldapObject) Removes the specified IdentityType- Parameters:
- ldapObject-
 
 - 
addMemberToGroupvoid addMemberToGroup(String groupDn, String memberAttrName, String value) Adds a member to a group.- Parameters:
- groupDn- The DN of the group object
- memberAttrName- The member attribute name
- value- The value (it can be uid or dn depending the group type)
 
 - 
removeMemberFromGroupvoid removeMemberFromGroup(String groupDn, String memberAttrName, String value) Removes a member from a group.- Parameters:
- groupDn- The DN of the group object
- memberAttrName- The member attribute name
- value- The value (it can be uid or dn depending the group type)
 
 - 
fetchQueryResultsList<LDAPObject> fetchQueryResults(LDAPQuery LDAPQuery) 
 - 
countQueryResultsint countQueryResults(LDAPQuery LDAPQuery) 
 - 
queryServerCapabilitiesSet<LDAPCapabilityRepresentation> queryServerCapabilities() Query the LDAP server RootDSE and extract theLDAPCapabilityRepresentationof all supported extensions, controls and features the server announces. The LDAP Wiki provides a list of known capabilities. Will throw aModelExceptionon any LDAP error, or when the searchResult is empty.- Returns:
- a set of LDAPOid, each representing a server capability (control, extension or feature).
 
 - 
validatePasswordvoid validatePassword(LDAPObject user, String password) throws AuthenticationException Validates the specified credentials.- Parameters:
- user- Keycloak user
- password- Ldap password
- Throws:
- AuthenticationException- if authentication is not successful
 
 - 
updatePasswordvoid updatePassword(LDAPObject user, String password, LDAPOperationDecorator passwordUpdateDecorator) Updates the specified credential value.- Parameters:
- user- Keycloak user
- password- Ldap password
- passwordUpdateDecorator- Callback to be executed before/after password update. Can be null
 
 
- 
 
-