Trait josekit::jws::JwsVerifier [−][src]
pub trait JwsVerifier: Debug + Send + Sync {
fn algorithm(&self) -> &dyn JwsAlgorithm;
fn key_id(&self) -> Option<&str>;
fn verify(&self, message: &[u8], signature: &[u8]) -> Result<(), JoseError>;
fn box_clone(&self) -> Box<dyn JwsVerifier>;
}
Required methods
fn algorithm(&self) -> &dyn JwsAlgorithm
fn algorithm(&self) -> &dyn JwsAlgorithm
Return the source algrithm instance.
Return the source key ID. The default value is a value of kid parameter in JWK.
Verify the data by the signature.
Arguments
message
- a message data to verify.signature
- a signature data.