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.TokenStore
public void add(String identifier, org.apache.cxf.ws.security.tokenstore.SecurityToken token)
add
in interface org.apache.cxf.ws.security.tokenstore.TokenStore
public void remove(String identifier)
remove
in interface org.apache.cxf.ws.security.tokenstore.TokenStore
public Collection<String> getTokenIdentifiers()
getTokenIdentifiers
in interface org.apache.cxf.ws.security.tokenstore.TokenStore
public org.apache.cxf.ws.security.tokenstore.SecurityToken getToken(String identifier)
getToken
in interface org.apache.cxf.ws.security.tokenstore.TokenStore
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void initComplete()
initComplete
in interface org.apache.cxf.buslifecycle.BusLifeCycleListener
public void preShutdown()
preShutdown
in interface org.apache.cxf.buslifecycle.BusLifeCycleListener
public void postShutdown()
postShutdown
in interface org.apache.cxf.buslifecycle.BusLifeCycleListener
This work is licensed under a Creative Commons Attribution 4.0 International License.