public class JtiValidator extends Object implements ErrorCodeValidator
ErrorCodeValidator.Error| Constructor and Description |
|---|
JtiValidator(boolean requireJti) |
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 © 2018. All rights reserved.