Class IsNotBeforeValidationCheck
java.lang.Object
org.activiti.cloud.services.common.security.jwt.validator.IsNotBeforeValidationCheck
- All Implemented Interfaces:
AbastractTimeValidationCheck,ValidationCheck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.activiti.cloud.services.common.security.jwt.validator.AbastractTimeValidationCheck
currentTime
-
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:
isValidin interfaceValidationCheck- Parameters:
accessToken- the Jwt access token- Returns:
- if the nbf claim is either in the past or the future
-