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 Detail

      • getUser

        String getUser()
        Returns the user name.
        Returns:
        The username property.
      • created

        Instant created()
        The date the token was created.
        Returns:
        The creation date.
      • 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.