Trait min_jwt::verify::Verifier [−][src]
pub trait Verifier: Private {
fn verify<M, S>(&self, message: M, signature: S) -> Result<()>
where
M: AsRef<[u8]>,
S: AsRef<[u8]>;
}
Expand description
A type which can verify a signature of a given message.
In some cases, the trait is directly implemented on a verifying key type which can directly verify a signature.
In other cases, a new type composed of multiple fields may be needed because the verifying key’s verify method may require more parameters.