public class AudValidator extends Object implements ErrorCodeValidator
ErrorCodeValidator.Error| Constructor and Description |
|---|
AudValidator(Set<String> acceptableAudiences,
boolean requireAudience) |
| Modifier and Type | Method and Description |
|---|---|
ErrorCodeValidator.Error |
validate(JwtContext jwtContext)
Validate some aspect of the JWT.
|
public ErrorCodeValidator.Error validate(JwtContext jwtContext) throws MalformedClaimException
ErrorCodeValidatorValidate some aspect of the JWT.
Implementations should use negative values
for error codes so as to avoid potential collisions with error code values
used by this library, which are defined in ErrorCodes.
validate in interface ErrorCodeValidatorjwtContext - the JWT contextMalformedClaimException - if a malformed claim is encounteredCopyright © 2022. All rights reserved.