pub struct HmacSigner { /* private fields */ }Expand description
HMAC-SHA256 (HS256) implementation of TokenSigner and TokenVerifier.
Cloning is cheap — the secret is stored behind Arc.
Implementations§
Trait Implementations§
Source§impl Clone for HmacSigner
impl Clone for HmacSigner
Source§impl From<HmacSigner> for Arc<dyn TokenSigner>
impl From<HmacSigner> for Arc<dyn TokenSigner>
Source§fn from(signer: HmacSigner) -> Self
fn from(signer: HmacSigner) -> Self
Converts to this type from the input type.
Source§impl From<HmacSigner> for Arc<dyn TokenVerifier>
impl From<HmacSigner> for Arc<dyn TokenVerifier>
Source§fn from(signer: HmacSigner) -> Self
fn from(signer: HmacSigner) -> Self
Converts to this type from the input type.
Source§impl TokenSigner for HmacSigner
impl TokenSigner for HmacSigner
Source§impl TokenVerifier for HmacSigner
impl TokenVerifier 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