Package org.opencms.security
Class CmsPersistentLoginTokenHandler.Token
java.lang.Object
org.opencms.security.CmsPersistentLoginTokenHandler.Token
- Enclosing class:
- CmsPersistentLoginTokenHandler
Bean representing the data encoded in a login token (user name and key).
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
SEPARATOR
Separator to use for the encoded token string.- See Also:
-
-
Constructor Details
-
Token
Creates a new token object from the encoded representation.- Parameters:
token
- a string containing the token data
-
Token
Creates a token object from the given name and key.- Parameters:
name
- the namekey
- the key
-
-
Method Details
-
encode
Gets the encoded token string representation.- Returns:
- the token string
-
getAdditionalInfoKey
Gets the additional info key to use for this token.- Returns:
- the additional info key
-
getKey
Gets the key for this token.- Returns:
- the key
-
getName
Gets the user name for this token.- Returns:
- the user name
-
isValid
Checks if this token is valid.- Returns:
- true if this token is valid
-