Interface TokenValidator

  • All Known Implementing Classes:
    DefaultTokenValidator

    public interface TokenValidator
    Validates the content of a token.
    • Method Summary

      Modifier and Type Method Description
      void validate​(io.jsonwebtoken.Claims tokenContent)
      Validates each attribute that is relevant to check in a JWT.
    • Method Detail

      • validate

        void validate​(io.jsonwebtoken.Claims tokenContent)
               throws SecurityException
        Validates each attribute that is relevant to check in a JWT.
        Parameters:
        tokenContent - a token's body
        Throws:
        SecurityException - if a validation error occurs