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 Instant
created()
The date the token was created.long
getNonce()
The nonce that is stored in the token.String
getUser()
Returns the user name.boolean
isValid()
Returns true, if the token is valid.Instant
validBefore()
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.
-
-