pub trait ArtifactVerifier {
// Required method
fn verify(&self, data: &[u8], signature: &[u8]) -> bool;
// Provided methods
fn expected_jws_algorithm(&self) -> Option<&'static str> { ... }
fn expected_cose_algorithm(&self) -> Option<SigningAlgorithm> { ... }
}Expand description
Verifies a raw signature over raw bytes with one key.
Required Methods§
Provided Methods§
Sourcefn expected_jws_algorithm(&self) -> Option<&'static str>
fn expected_jws_algorithm(&self) -> Option<&'static str>
The JOSE alg this verifier expects for JWS artifacts, when known.
Sourcefn expected_cose_algorithm(&self) -> Option<SigningAlgorithm>
fn expected_cose_algorithm(&self) -> Option<SigningAlgorithm>
The COSE algorithm this verifier expects for COSE artifacts, when known.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".