|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 TokenStore
token
- The token to be addedpublic void update(SecurityToken token)
update
in interface TokenStore
public void remove(SecurityToken token)
TokenStore
remove
in interface TokenStore
public Collection<SecurityToken> getCancelledTokens()
TokenStore
getCancelledTokens
in interface TokenStore
Tokens
public Collection<SecurityToken> getExpiredTokens()
TokenStore
EXPIRED
tokens.
If there are no EXPIRED
tokens null
will be
returned
getExpiredTokens
in interface TokenStore
Tokens
public Collection<SecurityToken> getRenewedTokens()
TokenStore
getRenewedTokens
in interface TokenStore
Tokens
public Collection<String> getTokenIdentifiers()
TokenStore
getTokenIdentifiers
in interface TokenStore
public Collection<SecurityToken> getValidTokens()
TokenStore
getValidTokens
in interface TokenStore
Tokens
.public SecurityToken getToken(String id)
TokenStore
Token
of the given id
getToken
in interface TokenStore
Token
identified by the give idprotected Collection<SecurityToken> getTokens(SecurityToken.State state)
protected void processTokenExpiry()
public void removeCancelledTokens()
TokenStore
removeCancelledTokens
in interface TokenStore
public void removeExpiredTokens()
TokenStore
removeExpiredTokens
in interface TokenStore
public void setAutoRemoveTokens(boolean auto)
TokenStore
setAutoRemoveTokens
in interface TokenStore
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |