|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.sts.cache.EHCacheIdentityCache
@ManagedResource public class EHCacheIdentityCache
A EH-Cache based cache to cache identities in different realms where the relationship is of type FederateIdentity.
Constructor Summary | |
---|---|
EHCacheIdentityCache(IdentityMapper identityMapper,
Bus b)
|
|
EHCacheIdentityCache(IdentityMapper identityMapper,
String key,
Bus b,
URL configFileURL)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EHCacheIdentityCache(IdentityMapper identityMapper, Bus b)
public EHCacheIdentityCache(IdentityMapper identityMapper, String key, Bus b, URL configFileURL)
Method Detail |
---|
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 Principal
public void close()
close
in interface Closeable
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 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |