[−][src]Struct http_signatures::SignedHeader
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]
impl SignedHeader
pub fn new(s: &str) -> Result<Self, DecodeError>
[src]
pub fn new(s: &str) -> Result<Self, DecodeError>
Try to create an SignedHeader
from a given String.
pub fn verify(
self,
headers: &[(&str, &str)],
method: &str,
path: &str,
query: Option<&str>,
key: Input
) -> Result<(), VerificationError>
[src]
pub fn verify(
self,
headers: &[(&str, &str)],
method: &str,
path: &str,
query: Option<&str>,
key: Input
) -> Result<(), VerificationError>
Try to verify the current SignedHeader
.
Trait Implementations
impl Debug for SignedHeader
[src]
impl Debug for SignedHeader
impl FromStr for SignedHeader
[src]
impl FromStr for SignedHeader
Auto Trait Implementations
impl Send for SignedHeader
impl Send for SignedHeader
impl Sync for SignedHeader
impl Sync for SignedHeader
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId