|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.rahas.SimpleTokenStore
In-memory implementation of the token storage
Field Summary | |
protected Map |
tokens
|
Fields inherited from interface org.apache.rahas.TokenStorage |
TOKEN_STORAGE_KEY |
Constructor Summary | |
SimpleTokenStore()
|
Method Summary | |
void |
add(Token token)
Add the given token to the list. |
Token[] |
getCancelledTokens()
Return the list of CANCELLED tokens |
Token[] |
getExpiredTokens()
Return the list of EXPIRED tokens. |
Token[] |
getRenewedTokens()
Return the list of RENEWED tokens. |
Token |
getToken(String id)
Returns the Token of the given id |
String[] |
getTokenIdentifiers()
Return the list of all token identifiers. |
Token[] |
getValidTokens()
Return the list of ISSUED and RENEWED tokens. |
protected void |
processTokenExpiry()
|
void |
update(Token token)
Update an existing token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Map tokens
Constructor Detail |
public SimpleTokenStore()
Method Detail |
public void add(Token token) throws TrustException
TokenStorage
add
in interface TokenStorage
token
- The token to be added
TrustException
public void update(Token token) throws TrustException
TokenStorage
update
in interface TokenStorage
token
-
TrustException
public String[] getTokenIdentifiers() throws TrustException
TokenStorage
getTokenIdentifiers
in interface TokenStorage
TrustException
public Token[] getValidTokens() throws TrustException
TokenStorage
getValidTokens
in interface TokenStorage
Tokens
.
TrustException
public Token[] getRenewedTokens() throws TrustException
TokenStorage
getRenewedTokens
in interface TokenStorage
Tokens
TrustException
public Token[] getCancelledTokens() throws TrustException
TokenStorage
getCancelledTokens
in interface TokenStorage
Tokens
TrustException
public Token[] getExpiredTokens() throws TrustException
TokenStorage
EXPIRED
tokens.
If there are no EXPIRED
tokens null
will be
returned
getExpiredTokens
in interface TokenStorage
Tokens
TrustException
public Token getToken(String id) throws TrustException
TokenStorage
Token
of the given id
getToken
in interface TokenStorage
id
-
Token
identified by the give id
TrustException
protected void processTokenExpiry() throws TrustException
TrustException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |