Package org.apache.cxf.sts.cache
Class EHCacheIdentityCache
java.lang.Object
org.apache.cxf.sts.cache.AbstractIdentityCache
org.apache.cxf.sts.cache.EHCacheIdentityCache
- All Implemented Interfaces:
Closeable,AutoCloseable,BusLifeCycleListener,ManagedComponent,IdentityCache,IdentityMapper
@ManagedResource
public class EHCacheIdentityCache
extends AbstractIdentityCache
implements Closeable, BusLifeCycleListener
A EH-Cache based cache to cache identities in different realms where
the relationship is of type FederateIdentity.
-
Constructor Summary
ConstructorsConstructorDescriptionEHCacheIdentityCache(IdentityMapper identityMapper, String key, Bus b, URL configFileURL) EHCacheIdentityCache(IdentityMapper identityMapper, Bus b) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidInvoked when theBushas been initialized.voidInvoked after theBusis shutdown.voidInvoked before theBusis shutdown.voidMethods inherited from class org.apache.cxf.sts.cache.AbstractIdentityCache
getBus, getStatistics, mapPrincipal, setStatistics
-
Constructor Details
-
EHCacheIdentityCache
-
EHCacheIdentityCache
-
-
Method Details
-
add
- Specified by:
addin interfaceIdentityCache
-
get
- Specified by:
getin interfaceIdentityCache
-
remove
- Specified by:
removein interfaceIdentityCache
-
getContent
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
initComplete
public void initComplete()Description copied from interface:BusLifeCycleListenerInvoked when theBushas been initialized.- Specified by:
initCompletein interfaceBusLifeCycleListener
-
preShutdown
public void preShutdown()Description copied from interface:BusLifeCycleListenerInvoked before theBusis shutdown.- Specified by:
preShutdownin interfaceBusLifeCycleListener
-
postShutdown
public void postShutdown()Description copied from interface:BusLifeCycleListenerInvoked after theBusis shutdown.- Specified by:
postShutdownin interfaceBusLifeCycleListener
-
getObjectName
- Specified by:
getObjectNamein interfaceManagedComponent- Throws:
JMException
-