pub struct JwkVerifier { /* private fields */ }Expand description
A verifier over one published key.
Deliberately opaque: it prints what it is, never the key material it holds.
Trait Implementations§
Source§impl ArtifactVerifier for JwkVerifier
impl ArtifactVerifier for JwkVerifier
Source§fn verify(&self, data: &[u8], signature: &[u8]) -> bool
fn verify(&self, data: &[u8], signature: &[u8]) -> bool
true when signature is a valid signature over data.Source§fn 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.Source§fn expected_cose_algorithm(&self) -> Option<SigningAlgorithm>
fn expected_cose_algorithm(&self) -> Option<SigningAlgorithm>
The COSE algorithm this verifier expects for COSE artifacts, when
known.
Auto Trait Implementations§
impl Freeze for JwkVerifier
impl RefUnwindSafe for JwkVerifier
impl Send for JwkVerifier
impl Sync for JwkVerifier
impl Unpin for JwkVerifier
impl UnsafeUnpin for JwkVerifier
impl UnwindSafe for JwkVerifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more