Class JwtAudienceValidator
- java.lang.Object
-
- com.sap.cloud.security.token.validation.validators.JwtAudienceValidator
-
public class JwtAudienceValidator extends Object implements Validator<Token>
Validates if the jwt access token is intended for the OAuth2 client of this application. The aud (audience) claim identifies the recipients the JWT is issued for. Validates whether there is one audience that matches one of the configured OAuth2 client ids.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getTrustedClientIds()ValidationResultvalidate(Token token)Validates the given object.
-
-
-
Method Detail
-
validate
public ValidationResult validate(Token token)
Description copied from interface:ValidatorValidates the given object.- Specified by:
validatein interfaceValidator<Token>- Parameters:
token- the object of typeValidatorto be validated.- Returns:
- the validation result as
ValidationResult.
-
-