Package org.keycloak.sdjwt
Class ClaimVerifier.ExpCheck
java.lang.Object
org.keycloak.sdjwt.ClaimVerifier.TimeCheck
org.keycloak.sdjwt.ClaimVerifier.ExpCheck
- All Implemented Interfaces:
ClaimVerifier.Predicate<com.fasterxml.jackson.databind.node.ObjectNode>
- Enclosing class:
- ClaimVerifier
public static class ClaimVerifier.ExpCheck
extends ClaimVerifier.TimeCheck
implements ClaimVerifier.Predicate<com.fasterxml.jackson.databind.node.ObjectNode>
-
Field Summary
Fields inherited from class org.keycloak.sdjwt.ClaimVerifier.TimeCheck
clockSkewSeconds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(com.fasterxml.jackson.databind.node.ObjectNode jsonWebToken) Performs a single check on the given token verifier.Methods inherited from class org.keycloak.sdjwt.ClaimVerifier.TimeCheck
getClockSkewSeconds, setClockSkewSecondsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.sdjwt.ClaimVerifier.Predicate
getCurrentTimestamp
-
Constructor Details
-
ExpCheck
public ExpCheck(int clockSkewSeconds) -
ExpCheck
public ExpCheck(int clockSkewSeconds, boolean isOptional)
-
-
Method Details
-
test
public boolean test(com.fasterxml.jackson.databind.node.ObjectNode jsonWebToken) throws VerificationException Description copied from interface:ClaimVerifier.PredicatePerforms a single check on the given token verifier.- Specified by:
testin interfaceClaimVerifier.Predicate<com.fasterxml.jackson.databind.node.ObjectNode>- Parameters:
jsonWebToken- Token, guaranteed to be non-null.- Returns:
- Throws:
VerificationException
-