[][src]Struct jws::hmac::HmacVerifier

pub struct HmacVerifier<Key: AsRef<[u8]>> { /* fields omitted */ }

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]

pub fn new(key: K) -> Self[src]

Create a new HMAC verifier using a specified key.

Trait Implementations

impl<Key: Clone + AsRef<[u8]>> Clone for HmacVerifier<Key>[src]

impl<Key: Debug + AsRef<[u8]>> Debug for HmacVerifier<Key>[src]

impl<K: AsRef<[u8]>> Verifier for HmacVerifier<K>[src]

Auto Trait Implementations

impl<Key> RefUnwindSafe for HmacVerifier<Key> where
    Key: RefUnwindSafe

impl<Key> Send for HmacVerifier<Key> where
    Key: Send

impl<Key> Sync for HmacVerifier<Key> where
    Key: Sync

impl<Key> Unpin for HmacVerifier<Key> where
    Key: Unpin

impl<Key> UnwindSafe for HmacVerifier<Key> where
    Key: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.