Class IsNotBeforeValidationCheck

java.lang.Object
org.activiti.cloud.services.common.security.jwt.validator.IsNotBeforeValidationCheck
All Implemented Interfaces:
AbastractTimeValidationCheck, ValidationCheck

public class IsNotBeforeValidationCheck extends Object implements AbastractTimeValidationCheck
  • Constructor Details

    • IsNotBeforeValidationCheck

      public IsNotBeforeValidationCheck(long offset)
  • Method Details

    • 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