Package org.eclnt.util.token
Class TokenMgrImplInProcessMap
java.lang.Object
org.eclnt.util.token.TokenMgrImplInProcessMap
- All Implemented Interfaces:
ITokenMgr
- Direct Known Subclasses:
TokenMgrImplByStreamStore
Management of tokens - "abbreviations" which hide a content string.
Tokens e.g. are used as URL parameter: instead of appending content data to a URL, the content data is arranged behind a token, which is stored in the TokenMgr. The URL only contains the token - and the receiving side has to read the information from the TokenMgr.
Tokens e.g. are used as URL parameter: instead of appending content data to a URL, the content data is arranged behind a token, which is stored in the TokenMgr. The URL only contains the token - and the receiving side has to read the information from the TokenMgr.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkIfTokenIsTimedOut
(Token token) protected void
protected void
createToken
(String content) protected void
deleteToken
(String uuid) Reads a token without removing it from the TokenMgr.Reads a token and removes it from the TokenMgr.protected Token
protected void
-
Field Details
-
MAX_TOKEN_VALIDITYDURATION
public static final long MAX_TOKEN_VALIDITYDURATION- See Also:
-
-
Constructor Details
-
TokenMgrImplInProcessMap
public TokenMgrImplInProcessMap()
-
-
Method Details
-
createToken
- Specified by:
createToken
in interfaceITokenMgr
-
pullToken
Reads a token and removes it from the TokenMgr. -
getToken
Reads a token without removing it from the TokenMgr. -
readToken
-
saveToken
-
deleteToken
-
cleanUpUnusedTokens
protected void cleanUpUnusedTokens() -
cleanUpUnusedTokensExecute
protected void cleanUpUnusedTokensExecute() -
checkIfTokenIsTimedOut
-