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 Details

  • Method Details

    • getDefaultComparator

      protected static BiFunction<String,String,Boolean> getDefaultComparator()
      Returns:
      a simple equals-check for two strings
    • test

      public boolean test(com.fasterxml.jackson.databind.node.ObjectNode t) throws VerificationException
      Description copied from interface: ClaimVerifier.Predicate
      Performs a single check on the given token verifier.
      Specified by:
      test in interface ClaimVerifier.Predicate<com.fasterxml.jackson.databind.node.ObjectNode>
      Parameters:
      t - Token, guaranteed to be non-null.
      Returns:
      Throws:
      VerificationException
    • getClaimName

      public String getClaimName()
    • getExpectedClaimValue

      public String getExpectedClaimValue()
    • isOptional

      public boolean isOptional()