[−][src]Struct jws::hmac::HmacVerifier
Message verifier that supports the HMAC-SHA-256, HMAC-SHA-384 and HMAC-SHA-512 algorithms using rust-crypto
.
The wrapped key type may be anything that implements AsRef<[u8]>
.
You can use a Vec<u8>
to have the verifier own the key,
or a &[u8]
to prevent copying the key more than necessary.
Methods
impl<K: AsRef<[u8]>> HmacVerifier<K>
[src]
Trait Implementations
impl<Key: Clone + AsRef<[u8]>> Clone for HmacVerifier<Key>
[src]
fn clone(&self) -> HmacVerifier<Key>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Key: Debug + AsRef<[u8]>> Debug for HmacVerifier<Key>
[src]
impl<K: AsRef<[u8]>> Verifier for HmacVerifier<K>
[src]
fn verify(
&self,
protected_header: Option<&JsonObject>,
unprotected_header: Option<&JsonObject>,
encoded_header: &[u8],
encoded_payload: &[u8],
signature: &[u8]
) -> Result<()>
[src]
&self,
protected_header: Option<&JsonObject>,
unprotected_header: Option<&JsonObject>,
encoded_header: &[u8],
encoded_payload: &[u8],
signature: &[u8]
) -> Result<()>
fn or<Other: Verifier>(self, other: Other) -> OrVerifier<Self, Other>
[src]
fn and<Other: Verifier>(self, other: Other) -> AndVerifier<Self, Other>
[src]
Auto Trait Implementations
impl<Key> RefUnwindSafe for HmacVerifier<Key> where
Key: RefUnwindSafe,
Key: RefUnwindSafe,
impl<Key> Send for HmacVerifier<Key> where
Key: Send,
Key: Send,
impl<Key> Sync for HmacVerifier<Key> where
Key: Sync,
Key: Sync,
impl<Key> Unpin for HmacVerifier<Key> where
Key: Unpin,
Key: Unpin,
impl<Key> UnwindSafe for HmacVerifier<Key> where
Key: UnwindSafe,
Key: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,