public class SimpleCache extends Object implements KeycloakCache
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,CachedApplication> |
applicationCache |
protected ConcurrentHashMap<String,CachedOAuthClient> |
clientCache |
protected ConcurrentHashMap<String,CachedRealm> |
realmCache |
protected ConcurrentHashMap<String,CachedRealm> |
realmCacheByName |
protected ConcurrentHashMap<String,CachedRole> |
roleCache |
Constructor and Description |
---|
SimpleCache() |
Modifier and Type | Method and Description |
---|---|
void |
addCachedApplication(CachedApplication app) |
void |
addCachedOAuthClient(CachedOAuthClient client) |
void |
addCachedRealm(CachedRealm realm) |
void |
addCachedRole(CachedRole role) |
void |
clear() |
CachedApplication |
getApplication(String id) |
CachedRealm |
getCachedRealm(String id) |
CachedRealm |
getCachedRealmByName(String name) |
CachedOAuthClient |
getOAuthClient(String id) |
CachedRole |
getRole(String id) |
void |
invalidateApplication(CachedApplication app) |
void |
invalidateCachedApplicationById(String id) |
void |
invalidateCachedOAuthClientById(String id) |
void |
invalidateCachedRealm(CachedRealm realm) |
void |
invalidateCachedRealmById(String id) |
void |
invalidateCachedRoleById(String id) |
void |
invalidateOAuthClient(CachedOAuthClient client) |
void |
invalidateRole(CachedRole role) |
void |
invalidateRoleById(String id) |
protected ConcurrentHashMap<String,CachedRealm> realmCache
protected ConcurrentHashMap<String,CachedRealm> realmCacheByName
protected ConcurrentHashMap<String,CachedApplication> applicationCache
protected ConcurrentHashMap<String,CachedOAuthClient> clientCache
protected ConcurrentHashMap<String,CachedRole> roleCache
public void clear()
clear
in interface KeycloakCache
public CachedRealm getCachedRealm(String id)
getCachedRealm
in interface KeycloakCache
public void invalidateCachedRealm(CachedRealm realm)
invalidateCachedRealm
in interface KeycloakCache
public void invalidateCachedRealmById(String id)
invalidateCachedRealmById
in interface KeycloakCache
public void addCachedRealm(CachedRealm realm)
addCachedRealm
in interface KeycloakCache
public CachedRealm getCachedRealmByName(String name)
getCachedRealmByName
in interface KeycloakCache
public CachedApplication getApplication(String id)
getApplication
in interface KeycloakCache
public void invalidateApplication(CachedApplication app)
invalidateApplication
in interface KeycloakCache
public void addCachedApplication(CachedApplication app)
addCachedApplication
in interface KeycloakCache
public void invalidateCachedApplicationById(String id)
invalidateCachedApplicationById
in interface KeycloakCache
public CachedOAuthClient getOAuthClient(String id)
getOAuthClient
in interface KeycloakCache
public void invalidateOAuthClient(CachedOAuthClient client)
invalidateOAuthClient
in interface KeycloakCache
public void addCachedOAuthClient(CachedOAuthClient client)
addCachedOAuthClient
in interface KeycloakCache
public void invalidateCachedOAuthClientById(String id)
invalidateCachedOAuthClientById
in interface KeycloakCache
public CachedRole getRole(String id)
getRole
in interface KeycloakCache
public void invalidateRole(CachedRole role)
invalidateRole
in interface KeycloakCache
public void invalidateRoleById(String id)
invalidateRoleById
in interface KeycloakCache
public void addCachedRole(CachedRole role)
addCachedRole
in interface KeycloakCache
public void invalidateCachedRoleById(String id)
invalidateCachedRoleById
in interface KeycloakCache
Copyright © 2014. All Rights Reserved.