Class TimeMachineJWTDecoder

java.lang.Object
io.fusionauth.jwt.JWTDecoder
io.fusionauth.jwt.TimeMachineJWTDecoder

public class TimeMachineJWTDecoder extends JWTDecoder
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 Details

    • TimeMachineJWTDecoder

      public TimeMachineJWTDecoder(java.time.ZonedDateTime now)
  • Method Details

    • now

      protected java.time.ZonedDateTime now()
      Overrides:
      now in class JWTDecoder
      Returns:
      the 'now' to be used to validate 'exp' and 'nbf' claims.