Class DefaultTokenValidator

  • All Implemented Interfaces:
    TokenValidator

    @Singleton
    public class DefaultTokenValidator
    extends java.lang.Object
    implements TokenValidator
    Default implementation to validate a JWT's body. This implementation does not validate anything. To override this implementation, @Replaces must be set on the replacement implementation.
    • Method Summary

      Modifier and Type Method Description
      void validate​(io.jsonwebtoken.Claims tokenContent)
      Validates each attribute that is relevant to check in a JWT.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultTokenValidator

        public DefaultTokenValidator()
    • Method Detail

      • validate

        public void validate​(io.jsonwebtoken.Claims tokenContent)
        Description copied from interface: TokenValidator
        Validates each attribute that is relevant to check in a JWT.
        Specified by:
        validate in interface TokenValidator
        Parameters:
        tokenContent - a token's body