public interface TokenStore
| Modifier and Type | Method and Description |
|---|---|
String |
createToken(org.gatein.wci.security.Credentials credentials)
Create a token and returns it.
|
org.gatein.wci.security.Credentials |
validateToken(String tokenKey,
boolean remove)
Validates a token.
|
String createToken(org.gatein.wci.security.Credentials credentials) throws IllegalArgumentException, NullPointerException
credentials - the credentialsIllegalArgumentException - if the validity is not greater than zeroNullPointerException - if the payload is nullorg.gatein.wci.security.Credentials validateToken(String tokenKey, boolean remove) throws NullPointerException
tokenKey - the token keyremove - true if the token must be removed regardless its validityNullPointerException - if the token key argument is nullCopyright © 2017 JBoss by Red Hat. All Rights Reserved.