org.apache.cxf.sts.cache
Class HazelCastTokenStore

java.lang.Object
  extended by org.apache.cxf.sts.cache.HazelCastTokenStore
All Implemented Interfaces:
org.apache.cxf.ws.security.tokenstore.TokenStore

public class HazelCastTokenStore
extends Object
implements org.apache.cxf.ws.security.tokenstore.TokenStore


Field Summary
static long DEFAULT_TTL
           
static long MAX_TTL
           
 
Constructor Summary
HazelCastTokenStore(String mapName)
           
 
Method Summary
 void add(org.apache.cxf.ws.security.tokenstore.SecurityToken token)
           
 void add(String identifier, org.apache.cxf.ws.security.tokenstore.SecurityToken token)
           
 Collection<org.apache.cxf.ws.security.tokenstore.SecurityToken> getExpiredTokens()
           
 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 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

DEFAULT_TTL

public static final long DEFAULT_TTL
See Also:
Constant Field Values

MAX_TTL

public static final long MAX_TTL
See Also:
Constant Field Values
Constructor Detail

HazelCastTokenStore

public HazelCastTokenStore(String mapName)
Method Detail

setTTL

public void setTTL(long newTtl)
Set a new (default) TTL value in seconds

Parameters:
newTtl - a new (default) TTL value in seconds

getTTL

public long getTTL()
Get the (default) TTL value in seconds

Returns:
the (default) TTL value in seconds

add

public void add(org.apache.cxf.ws.security.tokenstore.SecurityToken token)
Specified by:
add in interface org.apache.cxf.ws.security.tokenstore.TokenStore

add

public void add(String identifier,
                org.apache.cxf.ws.security.tokenstore.SecurityToken token)
Specified by:
add in interface org.apache.cxf.ws.security.tokenstore.TokenStore

remove

public void remove(String identifier)
Specified by:
remove in interface org.apache.cxf.ws.security.tokenstore.TokenStore

getTokenIdentifiers

public Collection<String> getTokenIdentifiers()
Specified by:
getTokenIdentifiers in interface org.apache.cxf.ws.security.tokenstore.TokenStore

getExpiredTokens

public Collection<org.apache.cxf.ws.security.tokenstore.SecurityToken> getExpiredTokens()
Specified by:
getExpiredTokens in interface org.apache.cxf.ws.security.tokenstore.TokenStore

getToken

public org.apache.cxf.ws.security.tokenstore.SecurityToken getToken(String identifier)
Specified by:
getToken in interface org.apache.cxf.ws.security.tokenstore.TokenStore


Apache CXF