Class DefaultTokenRevocationLifetimeLookupStrategy
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.profile.logic.DefaultTokenRevocationLifetimeLookupStrategy
- All Implemented Interfaces:
Function<JWTClaimsSet,Duration>
public class DefaultTokenRevocationLifetimeLookupStrategy
extends Object
implements Function<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 first calculated and then the configurable
clock skew value and additional 5 minutes are added to the value. The result is returned.
If the expiration time is in the past with clock skew considered, a Duration.ZERO is returned.
If no expiration time is found, null is returned.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(JWTClaimsSet claimsSet) voidsetClockSkew(Duration skew) Set the clock skew.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
clockSkew
Positive clock skew adjustment to consider when calculating revocation lifetime.
-
-
Constructor Details
-
DefaultTokenRevocationLifetimeLookupStrategy
public DefaultTokenRevocationLifetimeLookupStrategy()Constructor.
-
-
Method Details
-
setClockSkew
Set the clock skew.- Parameters:
skew- clock skew to set
-
apply
- Specified by:
applyin interfaceFunction<JWTClaimsSet,Duration>
-