Package io.fusionauth.jwt
Interface Verifier
- All Known Implementing Classes:
ECVerifier,HMACVerifier,RSAPSSVerifier,RSAVerifier
public interface Verifier
- Author:
- Daniel DeGroff
-
Method Summary
-
Method Details
-
canVerify
- Parameters:
algorithm- The algorithm required to verify the signature on this JWT.- Returns:
- True if this Verifier is able to verify a signature using the specified algorithm.
-
verify
Verify the signature of the encoded JWT payload.- Parameters:
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.- Throws:
InvalidJWTSignatureException- If the signature is not valid.
-