Enum bbjwt::ValidationStep
source · pub enum ValidationStep {
Issuer(String),
Audience(String),
Nonce(String),
NotExpired,
HasSubject,
HasGroups,
}
Expand description
Enumeration of validation steps that are checked during validation.
A validation step basically means that a specific claim has to be present and, optionally, has to have a certain value.
For a list of claims see https://www.iana.org/assignments/jwt/jwt.xhtml#claims.
Note that this enum does not contain a Signature
variant as the signature is always verified.
Variants§
Issuer(String)
“iss” claim must have certain String value.
Audience(String)
“aud” claim must have certain String value.
Nonce(String)
“nonce” claim must have certain String value.
NotExpired
“exp” claim must contain a time stamp in the future.
HasSubject
“sub” claim must be present and non-empty.
HasGroups
“groups” claim must be present and non-empty.
Auto Trait Implementations§
impl RefUnwindSafe for ValidationStep
impl Send for ValidationStep
impl Sync for ValidationStep
impl Unpin for ValidationStep
impl UnwindSafe for ValidationStep
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