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

    Modifier and Type
    Method
    Description
    boolean
    validate(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 Details

    • validate

      boolean validate(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