pub struct HmacBlobCodec { /* private fields */ }Expand description
HMAC-SHA256 blob codec. Cleartext payload, authenticated only.
Wire format: b64url(json(claims)) + "." + b64url(hmac_sha256(json(claims))).
The payload is not encrypted; anyone who has the token can read the
claims. Pick PasetoV4Codec when that matters.
Implementations§
Trait Implementations§
Source§impl TokenMinter for HmacBlobCodec
impl TokenMinter for HmacBlobCodec
Source§impl TokenVerifier for HmacBlobCodec
impl TokenVerifier for HmacBlobCodec
Auto Trait Implementations§
impl Freeze for HmacBlobCodec
impl RefUnwindSafe for HmacBlobCodec
impl Send for HmacBlobCodec
impl Sync for HmacBlobCodec
impl Unpin for HmacBlobCodec
impl UnsafeUnpin for HmacBlobCodec
impl UnwindSafe for HmacBlobCodec
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