Struct jws::crypto::HmacVerifier
source · pub struct HmacVerifier { /* private fields */ }
Implementations
Trait Implementations
sourceimpl Verifier for HmacVerifier
impl Verifier for HmacVerifier
sourcefn verify(
&mut self,
headers: Headers<'_>,
encoded_header: &[u8],
encoded_payload: &[u8],
signature: &[u8]
) -> Result<()>
fn verify(
&mut self,
headers: Headers<'_>,
encoded_header: &[u8],
encoded_payload: &[u8],
signature: &[u8]
) -> Result<()>
Verify the signature of a JWS Compact Serialization message.
This function needs access to the decoded message headers in order to determine which MAC algorithm to use. It also needs access to the raw encoded parts to verify the MAC.
Auto Trait Implementations
impl RefUnwindSafe for HmacVerifier
impl Send for HmacVerifier
impl Sync for HmacVerifier
impl Unpin for HmacVerifier
impl UnwindSafe for HmacVerifier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more