|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.rs.security.saml.sso.EHCacheTokenReplayCache
public class EHCacheTokenReplayCache
An in-memory EHCache implementation of the TokenReplayCache interface. The default TTL is 60 minutes and the max TTL is 12 hours.
| Field Summary | |
|---|---|
static String |
CACHE_KEY
|
static long |
DEFAULT_TTL
|
static long |
MAX_TTL
|
| Constructor Summary | |
|---|---|
EHCacheTokenReplayCache()
|
|
EHCacheTokenReplayCache(Bus bus)
|
|
EHCacheTokenReplayCache(String configFileURL)
|
|
EHCacheTokenReplayCache(String configFileURL,
Bus bus)
|
|
| Method Summary | |
|---|---|
void |
close()
|
String |
getId(String id)
Return the given identifier if it is contained in the cache, otherwise null. |
long |
getTTL()
Get the (default) TTL value in seconds |
void |
putId(String id)
Add the given identifier to the cache. |
void |
putId(String id,
long timeToLive)
Add the given identifier to the cache. |
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
public static final String CACHE_KEY
| Constructor Detail |
|---|
public EHCacheTokenReplayCache()
public EHCacheTokenReplayCache(Bus bus)
public EHCacheTokenReplayCache(String configFileURL)
public EHCacheTokenReplayCache(String configFileURL,
Bus bus)
| Method Detail |
|---|
public void setTTL(long newTtl)
newTtl - a new (default) TTL value in secondspublic long getTTL()
public void putId(String id)
putId in interface TokenReplayCache<String>id - The identifier to be added
public void putId(String id,
long timeToLive)
putId in interface TokenReplayCache<String>identifier - The identifier to be addedtimeToLive - The length of time to cache the Identifier in secondspublic String getId(String id)
getId in interface TokenReplayCache<String>id - The identifier to check
public void close()
throws IOException
close in interface Closeableclose in interface TokenReplayCache<String>IOException
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||