Class DefaultTokenRevocationLifetimeLookupStrategy

  • All Implemented Interfaces:
    Function<com.nimbusds.jwt.JWTClaimsSet,​Duration>

    public class DefaultTokenRevocationLifetimeLookupStrategy
    extends Object
    implements Function<com.nimbusds.jwt.JWTClaimsSet,​Duration>
    Default lookup function for fetching the token revocation lifetime from the given claims set. If an expiration time is found from the claims set, a difference between now and it is returned. If the expiration time is in the past, a Duration.ZERO is returned. If no expiration time is found, null is returned.
    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • DefaultTokenRevocationLifetimeLookupStrategy

        public DefaultTokenRevocationLifetimeLookupStrategy()
    • Method Detail

      • apply

        @Nullable
        public Duration apply​(@Nullable
                              com.nimbusds.jwt.JWTClaimsSet claimsSet)
        Specified by:
        apply in interface Function<com.nimbusds.jwt.JWTClaimsSet,​Duration>