Package org.keycloak.sdjwt
Class ClaimVerifier.ClaimCheck
java.lang.Object
org.keycloak.sdjwt.ClaimVerifier.ClaimCheck
- All Implemented Interfaces:
ClaimVerifier.Predicate<com.fasterxml.jackson.databind.node.ObjectNode>
- Direct Known Subclasses:
ClaimVerifier.NegatedClaimCheck
- Enclosing class:
- ClaimVerifier
public static class ClaimVerifier.ClaimCheck
extends Object
implements ClaimVerifier.Predicate<com.fasterxml.jackson.databind.node.ObjectNode>
-
Constructor Summary
ConstructorsConstructorDescriptionClaimCheck(String claimName, String expectedClaimValue) ClaimCheck(String claimName, String expectedClaimValue, boolean isOptional) ClaimCheck(String claimName, String expectedClaimValue, BiFunction<String, String, Boolean> stringComparator) ClaimCheck(String claimName, String expectedClaimValue, BiFunction<String, String, Boolean> stringComparator, boolean isOptional) -
Method Summary
Modifier and TypeMethodDescriptionprotected static BiFunction<String,String, Boolean> booleanbooleantest(com.fasterxml.jackson.databind.node.ObjectNode t) Performs a single check on the given token verifier.Methods 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
-
ClaimCheck
-
ClaimCheck
-
ClaimCheck
-
ClaimCheck
-
-
Method Details
-
getDefaultComparator
- Returns:
- a simple equals-check for two strings
-
test
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:
t- Token, guaranteed to be non-null.- Returns:
- Throws:
VerificationException
-
getClaimName
-
getExpectedClaimValue
-
isOptional
public boolean isOptional()
-