public interface Verifier
Modifier and Type | Method and Description |
---|---|
boolean |
canVerify(Algorithm algorithm) |
void |
verify(Algorithm algorithm,
byte[] message,
byte[] signature)
Verify the signature of the encoded JWT payload.
|
boolean canVerify(Algorithm algorithm)
algorithm
- The algorithm required to verify the signature on this JWT.void verify(Algorithm algorithm, byte[] message, byte[] signature)
algorithm
- The algorithm used to verify the JWT signature.message
- The JWT message. The header and claims, the first two segments of the dot separated JWT.signature
- The signature to verify.InvalidJWTSignatureException
- If the signature is not valid.Copyright © 2022. All rights reserved.