pub struct HmacSigner { /* private fields */ }Expand description
HMAC-SHA256 signer over HARNESS_SECRET (+ optional previous).
Implementations§
Source§impl HmacSigner
impl HmacSigner
Sourcepub fn new(
current_secret: impl Into<String>,
previous_secret: Option<String>,
) -> Result<Self, SignerError>
pub fn new( current_secret: impl Into<String>, previous_secret: Option<String>, ) -> Result<Self, SignerError>
§Errors
SignerError::SecretTooShort when the current secret is shorter
than MIN_SECRET_BYTES.
Trait Implementations§
Source§impl Clone for HmacSigner
impl Clone for HmacSigner
Source§fn clone(&self) -> HmacSigner
fn clone(&self) -> HmacSigner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HmacSigner
impl Debug for HmacSigner
Auto Trait Implementations§
impl Freeze for HmacSigner
impl RefUnwindSafe for HmacSigner
impl Send for HmacSigner
impl Sync for HmacSigner
impl Unpin for HmacSigner
impl UnsafeUnpin for HmacSigner
impl UnwindSafe for HmacSigner
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