@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 IdentityCache
public 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)
IdentityMapper
mapPrincipal
in interface IdentityMapper
sourceRealm
- the source realm of the PrincipalsourcePrincipal
- the principal in the source realmtargetRealm
- the target realm of the Principalpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
public void initComplete()
BusLifeCycleListener
Bus
has been initialized.initComplete
in interface BusLifeCycleListener
public void preShutdown()
BusLifeCycleListener
Bus
is shutdown.preShutdown
in interface BusLifeCycleListener
public void postShutdown()
BusLifeCycleListener
Bus
is shutdown.postShutdown
in interface BusLifeCycleListener
public ObjectName getObjectName() throws JMException
getObjectName
in interface ManagedComponent
JMException
Apache CXF