public class EHCacheTokenStore extends Object implements org.apache.cxf.ws.security.tokenstore.TokenStore, Closeable, org.apache.cxf.buslifecycle.BusLifeCycleListener
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TTL |
static long |
MAX_TTL |
| Constructor and Description |
|---|
EHCacheTokenStore(String key,
org.apache.cxf.Bus b,
URL configFileURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.cxf.ws.security.tokenstore.SecurityToken token) |
void |
add(String identifier,
org.apache.cxf.ws.security.tokenstore.SecurityToken token) |
void |
close() |
org.apache.cxf.ws.security.tokenstore.SecurityToken |
getToken(String identifier) |
Collection<String> |
getTokenIdentifiers() |
void |
initComplete() |
void |
postShutdown() |
void |
preShutdown() |
void |
remove(String identifier) |
void |
setTTL(long newTtl)
Set a new (default) TTL value in seconds
|
public static final long DEFAULT_TTL
public static final long MAX_TTL
public void setTTL(long newTtl)
newTtl - a new (default) TTL value in secondspublic void add(org.apache.cxf.ws.security.tokenstore.SecurityToken token)
add in interface org.apache.cxf.ws.security.tokenstore.TokenStorepublic void add(String identifier, org.apache.cxf.ws.security.tokenstore.SecurityToken token)
add in interface org.apache.cxf.ws.security.tokenstore.TokenStorepublic void remove(String identifier)
remove in interface org.apache.cxf.ws.security.tokenstore.TokenStorepublic Collection<String> getTokenIdentifiers()
getTokenIdentifiers in interface org.apache.cxf.ws.security.tokenstore.TokenStorepublic org.apache.cxf.ws.security.tokenstore.SecurityToken getToken(String identifier)
getToken in interface org.apache.cxf.ws.security.tokenstore.TokenStorepublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void initComplete()
initComplete in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerpublic void preShutdown()
preShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerpublic void postShutdown()
postShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerThis work is licensed under a Creative Commons Attribution 4.0 International License.