Class JwtAudienceValidator
java.lang.Object
org.springframework.security.oauth2.jwt.JwtAudienceValidator
- All Implemented Interfaces:
 OAuth2TokenValidator<Jwt>
Validates that the "aud" claim in a 
Jwt matches a configured value.- Since:
 - 6.5
 
- 
Constructor Summary
ConstructorsConstructorDescriptionJwtAudienceValidator(String audience) Constructs aJwtAudienceValidatorusing the provided parameters - 
Method Summary
Modifier and TypeMethodDescriptionVerify the validity and/or constraints of the provided OAuth 2.0 Token. 
- 
Constructor Details
- 
JwtAudienceValidator
Constructs aJwtAudienceValidatorusing the provided parameters- Parameters:
 audience- - The audience that eachJwtshould have.
 
 - 
 - 
Method Details
- 
validate
Description copied from interface:OAuth2TokenValidatorVerify the validity and/or constraints of the provided OAuth 2.0 Token.- Specified by:
 validatein interfaceOAuth2TokenValidator<Jwt>- Parameters:
 token- an OAuth 2.0 token- Returns:
 - OAuth2TokenValidationResult the success or failure detail of the validation
 
 
 -