pub enum VerificationRequirements {
VerifyClaims {
acceptable_algorithms: Vec<String>,
acceptable_issuers: Option<Vec<Issuer>>,
acceptable_audiences: Option<Vec<Audience>>,
acceptable_subject: Option<String>,
},
VerifySignatureOnly {
acceptable_algorithms: Vec<String>,
},
}Expand description
Verification requirements to use when verifying a signed JWT.
Variants
VerifyClaims
Fields
Verify the signature and provided claims for the JWT.
VerifySignatureOnly
Only verify the signature of the JWT but do not verify any claims.
Implementations
sourceimpl VerificationRequirements
impl VerificationRequirements
sourcepub fn acceptable_algorithms(&self) -> &[String]
pub fn acceptable_algorithms(&self) -> &[String]
Acceptable signing algorithms.
Trait Implementations
sourceimpl Clone for VerificationRequirements
impl Clone for VerificationRequirements
sourcefn clone(&self) -> VerificationRequirements
fn clone(&self) -> VerificationRequirements
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for VerificationRequirements
impl Debug for VerificationRequirements
sourceimpl PartialEq<VerificationRequirements> for VerificationRequirements
impl PartialEq<VerificationRequirements> for VerificationRequirements
sourcefn eq(&self, other: &VerificationRequirements) -> bool
fn eq(&self, other: &VerificationRequirements) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &VerificationRequirements) -> bool
fn ne(&self, other: &VerificationRequirements) -> bool
This method tests for !=.
impl StructuralPartialEq for VerificationRequirements
Auto Trait Implementations
impl RefUnwindSafe for VerificationRequirements
impl Send for VerificationRequirements
impl Sync for VerificationRequirements
impl Unpin for VerificationRequirements
impl UnwindSafe for VerificationRequirements
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more