pub struct JwtLocalPolicy { /* private fields */ }Expand description
Non-secret local policy. Expected values are kept private, wiped on drop,
and never included in the audit outcome or Debug output.
Implementations§
Source§impl JwtLocalPolicy
impl JwtLocalPolicy
Sourcepub fn new(
operator_policy_identity: (&str, &str),
expected_type: &str,
expected_issuer: &str,
expected_audience: &str,
required_claims: &[&str],
require_expiration: bool,
allowed_clock_skew_seconds: u32,
) -> Result<Self, JwtPolicyError>
pub fn new( operator_policy_identity: (&str, &str), expected_type: &str, expected_issuer: &str, expected_audience: &str, required_claims: &[&str], require_expiration: bool, allowed_clock_skew_seconds: u32, ) -> Result<Self, JwtPolicyError>
Constructs one bounded policy. String comparisons are exact and case-sensitive; no URI or version normalization is performed.
Auto Trait Implementations§
impl Freeze for JwtLocalPolicy
impl RefUnwindSafe for JwtLocalPolicy
impl Send for JwtLocalPolicy
impl Sync for JwtLocalPolicy
impl Unpin for JwtLocalPolicy
impl UnsafeUnpin for JwtLocalPolicy
impl UnwindSafe for JwtLocalPolicy
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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