Interface TokenData
-
- All Known Implementing Classes:
SimpleTokenData
public interface TokenData
This contains the token payload that is used for verification of tokens. Created by Martin Stockhammer on 11.02.17.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Instantcreated()The date the token was created.longgetNonce()The nonce that is stored in the token.StringgetUser()Returns the user name.booleanisValid()Returns true, if the token is valid.InstantvalidBefore()The date after that the token is invalid.
-
-
-
Method Detail
-
validBefore
Instant validBefore()
The date after that the token is invalid.- Returns:
- The invalidation date.
-
getNonce
long getNonce()
The nonce that is stored in the token.- Returns:
- The nonce.
-
isValid
boolean isValid()
Returns true, if the token is valid.- Returns:
- True, if valid, otherwise false.
-
-