public final class AADJwtClaimValidator<T> extends Object implements org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
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 and Description |
|---|
AADJwtClaimValidator(String claim,
Predicate<T> test)
Constructs a
AADJwtClaimValidator using the provided parameters |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.core.OAuth2TokenValidatorResult |
validate(org.springframework.security.oauth2.jwt.Jwt token) |
public AADJwtClaimValidator(String claim, Predicate<T> test)
AADJwtClaimValidator using the provided parametersclaim - - is the name of the claim in Jwt to validate.test - - is the predicate function for the claim to test against.public org.springframework.security.oauth2.core.OAuth2TokenValidatorResult validate(org.springframework.security.oauth2.jwt.Jwt token)
validate in interface org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.