|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.ws.security.tokenstore.MemoryTokenStore
public class MemoryTokenStore
| Constructor Summary | |
|---|---|
MemoryTokenStore()
|
|
| Method Summary | |
|---|---|
void |
add(SecurityToken token)
Add the given token to the list. |
Collection<SecurityToken> |
getCancelledTokens()
Return the list of CANCELLED tokens |
Collection<SecurityToken> |
getExpiredTokens()
Return the list of EXPIRED tokens. |
Collection<SecurityToken> |
getRenewedTokens()
Return the list of RENEWED tokens. |
SecurityToken |
getToken(String id)
Returns the Token of the given id |
Collection<String> |
getTokenIdentifiers()
Return the list of all token identifiers. |
protected Collection<SecurityToken> |
getTokens(SecurityToken.State state)
|
Collection<SecurityToken> |
getValidTokens()
Return the list of ISSUED and RENEWED tokens. |
protected void |
processTokenExpiry()
|
void |
remove(SecurityToken token)
Remove an existing token. |
void |
removeCancelledTokens()
Removes all cancelled tokens. |
void |
removeExpiredTokens()
Removes all expired tokens. |
void |
setAutoRemoveTokens(boolean auto)
Controls whether the store will automatically remove cancelled and expired tokens. |
void |
update(SecurityToken token)
Update an existing token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryTokenStore()
| Method Detail |
|---|
public void add(SecurityToken token)
add in interface TokenStoretoken - The token to be addedpublic void update(SecurityToken token)
update in interface TokenStorepublic void remove(SecurityToken token)
TokenStore
remove in interface TokenStorepublic Collection<SecurityToken> getCancelledTokens()
TokenStore
getCancelledTokens in interface TokenStoreTokenspublic Collection<SecurityToken> getExpiredTokens()
TokenStoreEXPIRED tokens.
If there are no EXPIRED tokens null will be
returned
getExpiredTokens in interface TokenStoreTokenspublic Collection<SecurityToken> getRenewedTokens()
TokenStore
getRenewedTokens in interface TokenStoreTokenspublic Collection<String> getTokenIdentifiers()
TokenStore
getTokenIdentifiers in interface TokenStorepublic Collection<SecurityToken> getValidTokens()
TokenStore
getValidTokens in interface TokenStoreTokens.public SecurityToken getToken(String id)
TokenStoreToken of the given id
getToken in interface TokenStoreToken identified by the give idprotected Collection<SecurityToken> getTokens(SecurityToken.State state)
protected void processTokenExpiry()
public void removeCancelledTokens()
TokenStore
removeCancelledTokens in interface TokenStorepublic void removeExpiredTokens()
TokenStore
removeExpiredTokens in interface TokenStorepublic void setAutoRemoveTokens(boolean auto)
TokenStore
setAutoRemoveTokens in interface TokenStore
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||