public class HazelCastTokenStore extends Object implements org.apache.cxf.ws.security.tokenstore.TokenStore
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TTL |
static long |
MAX_TTL |
| Constructor and Description |
|---|
HazelCastTokenStore(String mapName) |
| 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 |
destroy() |
com.hazelcast.core.HazelcastInstance |
getHazelcastInstance()
Get the Hazelcast instance
|
org.apache.cxf.ws.security.tokenstore.SecurityToken |
getToken(String identifier) |
Collection<String> |
getTokenIdentifiers() |
long |
getTTL()
Get the (default) TTL value in seconds
|
void |
remove(String identifier) |
void |
setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance)
Set the Hazelcast instance, otherwise default instance used
If you configure Hazelcast instance in spring, you must inject the instance here.
|
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 HazelCastTokenStore(String mapName)
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance)
hazelcastInstance - Hazelcast instancepublic void setTTL(long newTtl)
newTtl - a new (default) TTL value in secondspublic long getTTL()
public 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 destroy()
Apache CXF