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 Summary
Constructors Constructor Description IsNotBeforeValidationCheck(long offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(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, wait
-
Methods inherited from interface org.activiti.cloud.services.common.security.jwt.validator.AbastractTimeValidationCheck
currentTime
-
-
-
-
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:
isValidin interfaceValidationCheck- Parameters:
accessToken- the Jwt access token- Returns:
- if the nbf claim is either in the past or the future
-
-