|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.ws.security.cache.EHCacheReplayCache
public class EHCacheReplayCache
An in-memory EHCache implementation of the ReplayCache interface. The default TTL is 60 minutes and the max TTL is 12 hours.
| Field Summary | |
|---|---|
static long |
DEFAULT_TTL
|
static long |
MAX_TTL
|
| Constructor Summary | |
|---|---|
EHCacheReplayCache(String key,
URL configFileURL)
|
|
| Method Summary | |
|---|---|
void |
add(String identifier)
Add the given identifier to the cache. |
void |
add(String identifier,
long timeToLive)
Add the given identifier to the cache to be cached for the given time |
void |
close()
|
boolean |
contains(String identifier)
Return true if the given identifier is contained in the cache |
long |
getTTL()
Get the (default) TTL value in seconds |
void |
setTTL(long newTtl)
Set a new (default) TTL value in seconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_TTL
public static final long MAX_TTL
| Constructor Detail |
|---|
public EHCacheReplayCache(String key,
URL configFileURL)
| Method Detail |
|---|
public void setTTL(long newTtl)
newTtl - a new (default) TTL value in secondspublic long getTTL()
public void add(String identifier)
add in interface org.apache.ws.security.cache.ReplayCacheidentifier - The identifier to be added
public void add(String identifier,
long timeToLive)
add in interface org.apache.ws.security.cache.ReplayCacheidentifier - The identifier to be addedtimeToLive - The length of time to cache the Identifier in secondspublic boolean contains(String identifier)
contains in interface org.apache.ws.security.cache.ReplayCacheidentifier - The identifier to check
public void close()
throws IOException
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||