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
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