Package io.fusionauth.jwt
Class TimeMachineJWTDecoder
java.lang.Object
io.fusionauth.jwt.JWTDecoder
io.fusionauth.jwt.TimeMachineJWTDecoder
A version of the JWT Decoder that allows you to travel to the past or future by changing the space time continuum.
- Author:
- Daniel DeGroff
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.fusionauth.jwt.JWTDecoder
decode, decode, decode, decode, decode, withClockSkew
-
Constructor Details
-
TimeMachineJWTDecoder
public TimeMachineJWTDecoder(java.time.ZonedDateTime now)
-
-
Method Details
-
now
protected java.time.ZonedDateTime now()- Overrides:
nowin classJWTDecoder- Returns:
- the 'now' to be used to validate 'exp' and 'nbf' claims.
-