Class NotBeforeJwtClaimsValidator

  • All Implemented Interfaces:
    GenericJwtClaimsValidator, JwtClaimsValidator

    @Singleton
    @Requires(property="micronaut.security.token.jwt.claims-validators.not-before",
              value="true")
    public class NotBeforeJwtClaimsValidator
    extends java.lang.Object
    implements GenericJwtClaimsValidator
    Validate current time is not before the not-before claim of a JWT token.
    Since:
    2.4.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean validate​(com.nimbusds.jwt.JWTClaimsSet claimsSet)  
      boolean validate​(JwtClaims claims, io.micronaut.http.HttpRequest<?> request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • NotBeforeJwtClaimsValidator

        public NotBeforeJwtClaimsValidator()
    • Method Detail

      • validate

        protected boolean validate​(@NonNull
                                   com.nimbusds.jwt.JWTClaimsSet claimsSet)
        Parameters:
        claimsSet - The JWT Claims
        Returns:
        true if the not-before claim denotes a date before now
      • validate

        public boolean validate​(@NonNull
                                JwtClaims claims,
                                @Nullable
                                io.micronaut.http.HttpRequest<?> request)
        Specified by:
        validate in interface JwtClaimsValidator
        Parameters:
        claims - The JwtClaims
        request - HTTP Request
        Returns:
        true if the not-before claim denotes a date before now