pub struct AuthenticationPolicy {
pub trusted_issuers: BTreeSet<String>,
pub required_audience: String,
pub require_device_binding: bool,
pub minimum_assurance: AssuranceLevel,
pub max_authentication_age_ms: u64,
}Expand description
Authentication policy enforced before protected traffic enters domain authorization.
Fields§
§trusted_issuers: BTreeSet<String>§required_audience: String§require_device_binding: bool§minimum_assurance: AssuranceLevel§max_authentication_age_ms: u64Implementations§
Source§impl AuthenticationPolicy
impl AuthenticationPolicy
pub fn validate(&self) -> Result<(), SecurityError>
pub fn authenticate( &self, evidence: AuthenticationEvidence, now_unix_ms: u64, ) -> Result<ValidatedAuthContext, SecurityError>
Trait Implementations§
Source§impl Clone for AuthenticationPolicy
impl Clone for AuthenticationPolicy
Source§fn clone(&self) -> AuthenticationPolicy
fn clone(&self) -> AuthenticationPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticationPolicy
impl Debug for AuthenticationPolicy
Source§impl<'de> Deserialize<'de> for AuthenticationPolicy
impl<'de> Deserialize<'de> for AuthenticationPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthenticationPolicy
Source§impl PartialEq for AuthenticationPolicy
impl PartialEq for AuthenticationPolicy
Source§impl Serialize for AuthenticationPolicy
impl Serialize for AuthenticationPolicy
impl StructuralPartialEq for AuthenticationPolicy
Auto Trait Implementations§
impl Freeze for AuthenticationPolicy
impl RefUnwindSafe for AuthenticationPolicy
impl Send for AuthenticationPolicy
impl Sync for AuthenticationPolicy
impl Unpin for AuthenticationPolicy
impl UnsafeUnpin for AuthenticationPolicy
impl UnwindSafe for AuthenticationPolicy
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