Interface JwtValidator


  • public interface JwtValidator
    The JwtValidator provides an API to validate JWT formatted token as defined in http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-16
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean validate​(java.lang.String jwt, long time)
      Validates the JWT with regards to the "nbf" (not before) and "exp" (expiration time) claims being valid at the given time.
    • Method Detail

      • validate

        boolean validate​(java.lang.String jwt,
                         long time)
        Validates the JWT with regards to the "nbf" (not before) and "exp" (expiration time) claims being valid at the given time.
        Parameters:
        jwt - the Jwt to validate
        time - a UTC timestamp for checking the validity
        Returns:
        {code true} if the JWT can be accepted for processing, false otherwise