public class ErrorCodeValidatorAdapter extends Object implements ErrorCodeValidator
ErrorCodeValidator.Error| Constructor and Description |
|---|
ErrorCodeValidatorAdapter(Validator validator) |
public ErrorCodeValidatorAdapter(Validator validator)
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 © 2017. All rights reserved.