Apache CXF API

org.apache.cxf.xkms.cache
Class EHCacheXKMSClientCache

java.lang.Object
  extended by org.apache.cxf.xkms.cache.EHCacheXKMSClientCache
All Implemented Interfaces:
Closeable, BusLifeCycleListener, XKMSClientCache

public class EHCacheXKMSClientCache
extends Object
implements XKMSClientCache, BusLifeCycleListener

An in-memory EHCache implementation of the XKMSClientCache interface.


Field Summary
static String CACHE_KEY
           
 
Constructor Summary
EHCacheXKMSClientCache()
           
EHCacheXKMSClientCache(Bus cxfBus)
           
EHCacheXKMSClientCache(String configFileURL)
           
EHCacheXKMSClientCache(String configFileURL, Bus cxfBus)
           
 
Method Summary
 void close()
           
 XKMSCacheToken get(String key)
          Get an XKMSCacheToken from the cache matching the given key.
 void initComplete()
          Invoked when the Bus has been initialized.
 void postShutdown()
          Invoked after the Bus is shutdown.
 void preShutdown()
          Invoked before the Bus is shutdown.
 void put(String key, XKMSCacheToken cacheToken)
          Store an XKMSCacheToken in the Cache using the given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_KEY

public static final String CACHE_KEY
See Also:
Constant Field Values
Constructor Detail

EHCacheXKMSClientCache

public EHCacheXKMSClientCache()

EHCacheXKMSClientCache

public EHCacheXKMSClientCache(Bus cxfBus)

EHCacheXKMSClientCache

public EHCacheXKMSClientCache(String configFileURL)

EHCacheXKMSClientCache

public EHCacheXKMSClientCache(String configFileURL,
                              Bus cxfBus)
Method Detail

put

public void put(String key,
                XKMSCacheToken cacheToken)
Store an XKMSCacheToken in the Cache using the given key

Specified by:
put in interface XKMSClientCache

get

public XKMSCacheToken get(String key)
Get an XKMSCacheToken from the cache matching the given key. Returns null if there is no such XKMSCacheToken in the cache, or if the certificate has expired in the cache

Specified by:
get in interface XKMSClientCache

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in interface XKMSClientCache

initComplete

public void initComplete()
Description copied from interface: BusLifeCycleListener
Invoked when the Bus has been initialized.

Specified by:
initComplete in interface BusLifeCycleListener

preShutdown

public void preShutdown()
Description copied from interface: BusLifeCycleListener
Invoked before the Bus is shutdown.

Specified by:
preShutdown in interface BusLifeCycleListener

postShutdown

public void postShutdown()
Description copied from interface: BusLifeCycleListener
Invoked after the Bus is shutdown.

Specified by:
postShutdown in interface BusLifeCycleListener

Apache CXF API

Apache CXF