Struct http_signatures::AuthorizationHeader [] [src]

pub struct AuthorizationHeader<'a> { /* fields omitted */ }

The AuthorizationHeader struct is the direct reasult of reading in the Authorization 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, which will be handled by a type implementing GetKey.

Methods

impl<'a> AuthorizationHeader<'a>
[src]

[src]

Try to create an AuthorizationHeader from a given String.

[src]

Try to verify the current AuthorizationHeader.

Trait Implementations

impl<'a> TryFrom<&'a str> for AuthorizationHeader<'a>
[src]

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

The type returned in the event of a conversion error.

[src]

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

Performs the conversion.