[][src]Struct http_signatures::SignedHeader

pub struct SignedHeader {
    pub key_id: String,
    // some fields omitted
}

The SignedHeader struct is the direct reasult of reading in the Authorization or Signature header from a given request.

It contains the keys to the request's headers in the correct order for recreating the signing string, the algorithm used to create the signature, and the signature itself.

It also contains the key_id.

Fields

key_id: String

Methods

impl SignedHeader
[src]

pub fn new(s: &str) -> Result<Self, DecodeError>
[src]

Try to create an SignedHeader from a given String.

pub fn verify(
    self,
    headers: &[(&str, &str)],
    method: &str,
    path: &str,
    query: Option<&str>,
    key: VerifyKey
) -> Result<(), VerificationError>
[src]

Try to verify the current SignedHeader.

Trait Implementations

impl Debug for SignedHeader
[src]

impl FromStr for SignedHeader
[src]

type Err = DecodeError

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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