@ManagedResource public class EHCacheIdentityCache extends Object implements IdentityCache, IdentityMapper, Closeable, BusLifeCycleListener, ManagedComponent
| Constructor and Description |
|---|
EHCacheIdentityCache(IdentityMapper identityMapper,
Bus b) |
EHCacheIdentityCache(IdentityMapper identityMapper,
String key,
Bus b,
URL configFileURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String user,
String realm,
Map<String,String> identities) |
void |
clear() |
void |
close() |
Map<String,String> |
get(String user,
String realm) |
String |
getContent() |
ObjectName |
getObjectName() |
MemoryIdentityCacheStatistics |
getStatistics() |
void |
initComplete()
Invoked when the
Bus has been initialized. |
Principal |
mapPrincipal(String sourceRealm,
Principal sourcePrincipal,
String targetRealm)
Map a principal in the source realm to the target realm
|
void |
postShutdown()
Invoked after the
Bus is shutdown. |
void |
preShutdown()
Invoked before the
Bus is shutdown. |
void |
remove(String user,
String realm) |
void |
setStatistics(MemoryIdentityCacheStatistics stats) |
int |
size() |
public EHCacheIdentityCache(IdentityMapper identityMapper, Bus b)
public EHCacheIdentityCache(IdentityMapper identityMapper, String key, Bus b, URL configFileURL)
public MemoryIdentityCacheStatistics getStatistics()
public void setStatistics(MemoryIdentityCacheStatistics stats)
public void add(String user, String realm, Map<String,String> identities)
add in interface IdentityCache@ManagedOperation public Map<String,String> get(String user, String realm)
get in interface IdentityCachepublic void remove(String user, String realm)
remove in interface IdentityCache@ManagedOperation public void clear()
clear in interface IdentityCache@ManagedOperation public int size()
size in interface IdentityCache@ManagedOperation public String getContent()
public Principal mapPrincipal(String sourceRealm, Principal sourcePrincipal, String targetRealm)
IdentityMappermapPrincipal in interface IdentityMappersourceRealm - the source realm of the PrincipalsourcePrincipal - the principal in the source realmtargetRealm - the target realm of the Principalpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void initComplete()
BusLifeCycleListenerBus has been initialized.initComplete in interface BusLifeCycleListenerpublic void preShutdown()
BusLifeCycleListenerBus is shutdown.preShutdown in interface BusLifeCycleListenerpublic void postShutdown()
BusLifeCycleListenerBus is shutdown.postShutdown in interface BusLifeCycleListenerpublic ObjectName getObjectName() throws JMException
getObjectName in interface ManagedComponentJMExceptionApache CXF