public class TransientTokenService extends PlainTokenService<GateInToken,String>
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,GateInToken> |
tokens |
CLEANUP_PERIOD_TIME, DEFAULT_TOKEN_BYTE_LENGTH, delay_time, log, name, SERVICE_CONFIG, tokenByteLength, validityMillis| Constructor and Description |
|---|
TransientTokenService(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
String |
createToken(org.gatein.wci.security.Credentials credentials)
Create a token and returns it.
|
protected String |
decodeKey(String stringKey)
Decode a key from its string representation.
|
GateInToken |
deleteToken(String id) |
String[] |
getAllTokens() |
GateInToken |
getToken(String id) |
long |
size() |
cleanExpiredTokensgetInstance, getName, getPeriodTime, getValidityTime, nextRandom, nextTokenId, start, stop, validateTokenprotected final ConcurrentHashMap<String,GateInToken> tokens
public TransientTokenService(org.exoplatform.container.xml.InitParams initParams)
throws TokenServiceInitializationException
public String createToken(org.gatein.wci.security.Credentials credentials)
TokenStorecredentials - the credentialspublic GateInToken getToken(String id)
getToken in class AbstractTokenService<GateInToken,String>protected String decodeKey(String stringKey)
AbstractTokenServicedecodeKey in class AbstractTokenService<GateInToken,String>stringKey - the key a s a stringpublic GateInToken deleteToken(String id)
deleteToken in class AbstractTokenService<GateInToken,String>public String[] getAllTokens()
getAllTokens in class PlainTokenService<GateInToken,String>public long size()
size in class AbstractTokenService<GateInToken,String>Copyright © 2017 JBoss by Red Hat. All Rights Reserved.