Package org.keycloak.models.cache
Interface UserCache
-
- All Superinterfaces:
Provider
,UserBulkUpdateProvider
,UserLookupProvider
,UserProvider
,UserQueryProvider
,UserRegistrationProvider
- All Known Subinterfaces:
UserCache.Streams
- All Known Implementing Classes:
UserCacheSession
public interface UserCache extends UserProvider
All these methods effect an entire cluster of Keycloak instances.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
UserCache.Streams
Deprecated.This interface is no longer necessary, collection-based methods were removed from the parent interface and therefore the parent interface can be used directly
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear cache entirely.void
evict(RealmModel realm)
Evict users of a specific realmvoid
evict(RealmModel realm, UserModel user)
Evict user from cache.-
Methods inherited from interface org.keycloak.storage.user.UserBulkUpdateProvider
grantToAllUsers
-
Methods inherited from interface org.keycloak.storage.user.UserLookupProvider
getUserByCredential, getUserByEmail, getUserById, getUserByUsername
-
Methods inherited from interface org.keycloak.models.UserProvider
addConsent, addFederatedIdentity, addUser, close, getConsentByClient, getConsentsStream, getFederatedIdentitiesStream, getFederatedIdentity, getNotBeforeOfUser, getServiceAccount, getUserByFederatedIdentity, getUsersStream, getUsersStream, preRemove, preRemove, preRemove, preRemove, preRemove, preRemove, preRemove, preRemove, removeFederatedIdentity, removeImportedUsers, revokeConsentForClient, setNotBeforeForUser, unlinkUsers, updateConsent, updateFederatedIdentity
-
Methods inherited from interface org.keycloak.storage.user.UserQueryProvider
getGroupMembersStream, getGroupMembersStream, getRoleMembersStream, getRoleMembersStream, getUsersCount, getUsersCount, getUsersCount, getUsersCount, getUsersCount, getUsersCount, getUsersCount, getUsersStream, getUsersStream, searchForUserByUserAttributeStream, searchForUserStream, searchForUserStream, searchForUserStream, searchForUserStream
-
Methods inherited from interface org.keycloak.storage.user.UserRegistrationProvider
addUser, removeUser
-
-
-
-
Method Detail
-
evict
void evict(RealmModel realm, UserModel user)
Evict user from cache.- Parameters:
user
-
-
evict
void evict(RealmModel realm)
Evict users of a specific realm- Parameters:
realm
-
-
clear
void clear()
Clear cache entirely.
-
-