Class IsNotBeforeValidationCheck

    • Constructor Detail

      • IsNotBeforeValidationCheck

        public IsNotBeforeValidationCheck​(long offset)
    • Method Detail

      • isValid

        public boolean isValid​(org.springframework.security.oauth2.jwt.Jwt accessToken)
        The 'nbf' (NotBefore) claim is used by some auth providers as a way to set the moment from which a token starts being valid. A token could not be expired, but if its validity period has not started, it would be still an invalid token
        Specified by:
        isValid in interface ValidationCheck
        Parameters:
        accessToken - the Jwt access token
        Returns:
        if the nbf claim is either in the past or the future