Class AADJwtClaimValidator<T>

  • All Implemented Interfaces:
    org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>

    public final class AADJwtClaimValidator<T>
    extends Object
    implements org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
    Validates a claim in a Jwt against a provided Predicate. Note: Current implementation is not required, this is only used for compatibility with the Spring Boot 2.2.x version. Once support version is more than 2.2.X, then we can use "org.springframework.security.oauth2.jwt.JwtClaimValidator" instead.
    • Constructor Detail

      • AADJwtClaimValidator

        public AADJwtClaimValidator​(String claim,
                                    Predicate<T> test)
        Constructs a AADJwtClaimValidator 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 Detail

      • validate

        public org.springframework.security.oauth2.core.OAuth2TokenValidatorResult validate​(org.springframework.security.oauth2.jwt.Jwt token)
        Specified by:
        validate in interface org.springframework.security.oauth2.core.OAuth2TokenValidator<T>