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]
fn new(s: &'a str) -> Result<Self, DecodeError>[src]
Try to create an AuthorizationHeader from a given String.
fn verify<G>(
self,
headers: &[(&str, &str)],
method: &str,
path: &str,
query: Option<&str>,
key_getter: G
) -> Result<(), VerificationError> where
G: GetKey, [src]
self,
headers: &[(&str, &str)],
method: &str,
path: &str,
query: Option<&str>,
key_getter: G
) -> Result<(), VerificationError> where
G: GetKey,
Try to verify the current AuthorizationHeader.