Class JwtClaimValidator<T>

java.lang.Object
org.springframework.security.oauth2.jwt.JwtClaimValidator<T>
All Implemented Interfaces:
OAuth2TokenValidator<Jwt>

public final class JwtClaimValidator<T> extends Object implements OAuth2TokenValidator<Jwt>
Validates a claim in a Jwt against a provided Predicate
Since:
5.3
  • Constructor Details

    • JwtClaimValidator

      public JwtClaimValidator(String claim, Predicate<T> test)
      Constructs a JwtClaimValidator using the provided parameters
      Parameters:
      claim - - is the name of the claim in Jwt to validate.
      test - - is the predicate function for the claim to test against.
  • Method Details