Package com.adobe.granite.oauth.jwt
Interface JwtValidator
-
public interface JwtValidatorTheJwtValidatorprovides 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 booleanvalidate(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 validatetime- a UTC timestamp for checking the validity- Returns:
- {code true} if the JWT can be accepted for processing,
falseotherwise
-
-