pub struct SignatureBase<'a> { /* private fields */ }Implementations§
Source§impl<'a> SignatureBase<'a>
impl<'a> SignatureBase<'a>
pub fn from_request<B>( request: &Request<B>, params: &'a SignatureParams, ) -> Result<Self, HttpComponentError>
pub fn from_request_with_signer_key<B>( request: &Request<B>, params: &'a SignatureParams, key: &impl SignerKey, ) -> Result<Self, HttpComponentError>
pub fn from_response<B>( response: &Response<B>, params: &'a SignatureParams, ) -> Result<Self, HttpComponentError>
pub fn from_response_with_signer_key<B>( response: &Response<B>, params: &'a SignatureParams, key: &impl SignerKey, ) -> Result<Self, HttpComponentError>
pub fn from_exchange_record<Req, Res>( exchange_record: &ExchangeRecord<'_, Req, Res>, params: &'a SignatureParams, ) -> Result<Self, HttpComponentError>
pub fn from_exchange_record_with_signer_key<Req, Res>( exchange_record: &ExchangeRecord<'_, Req, Res>, params: &'a SignatureParams, key: &impl SignerKey, ) -> Result<Self, HttpComponentError>
pub fn into_header<S: SignerKey>(self, key: &S, label: &str) -> HeaderMap
pub fn verify( &self, verifier: &impl VerifierKey, signature: &[u8], ) -> Result<(), VerificationError>
Trait Implementations§
Source§impl<'a> Debug for SignatureBase<'a>
impl<'a> Debug for SignatureBase<'a>
Auto Trait Implementations§
impl<'a> Freeze for SignatureBase<'a>
impl<'a> RefUnwindSafe for SignatureBase<'a>
impl<'a> Send for SignatureBase<'a>
impl<'a> Sync for SignatureBase<'a>
impl<'a> Unpin for SignatureBase<'a>
impl<'a> UnsafeUnpin for SignatureBase<'a>
impl<'a> UnwindSafe for SignatureBase<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more