pub struct Verified<H, Alg, Sig = SignatureBytes>where
Alg: DynJsonWebAlgorithm + ?Sized,{ /* private fields */ }Expand description
This JWS has been verified.
This state is used when this program has verified the signature, so we know that the signature is valid and consistent with the header values. However, we also know that we did not create the token, and modifying it may result in headers which are not consistent with the signature.
Trait Implementations§
Source§impl<H, Alg, Sig> HasSignature for Verified<H, Alg, Sig>
impl<H, Alg, Sig> HasSignature for Verified<H, Alg, Sig>
Source§impl<H, Alg, Sig> MaybeSigned for Verified<H, Alg, Sig>where
Alg: DynJsonWebAlgorithm + ?Sized,
impl<H, Alg, Sig> MaybeSigned for Verified<H, Alg, Sig>where
Alg: DynJsonWebAlgorithm + ?Sized,
Source§type HeaderState = SignedHeader
type HeaderState = SignedHeader
The state of the header with respect to its signature. Read more
Source§fn is_verified(&self) -> bool
fn is_verified(&self) -> bool
Returns true if the token is signed and verified.
impl<H: Eq, Alg, Sig: Eq> Eq for Verified<H, Alg, Sig>
impl<H, Alg, Sig> StructuralPartialEq for Verified<H, Alg, Sig>where
Alg: DynJsonWebAlgorithm + ?Sized,
Auto Trait Implementations§
impl<H, Alg, Sig> Freeze for Verified<H, Alg, Sig>
impl<H, Alg, Sig> RefUnwindSafe for Verified<H, Alg, Sig>
impl<H, Alg, Sig> Send for Verified<H, Alg, Sig>
impl<H, Alg, Sig> Sync for Verified<H, Alg, Sig>
impl<H, Alg, Sig> Unpin for Verified<H, Alg, Sig>
impl<H, Alg, Sig> UnwindSafe for Verified<H, Alg, Sig>
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