pub struct EnrollAuthzPolicy<'a> {
pub require_cn_match: bool,
pub require_san_match: bool,
pub permitted_dns_names: &'a [String],
pub permitted_ip_addresses: &'a [String],
pub permitted_emails: &'a [String],
}Expand description
Per-label enrollment authorization policy.
Borrowed from an crate::routes::LabelExtractor for the lifetime of a
single enrollment request; no allocation.
Fields§
§require_cn_match: boolRequire the CSR subject Common Name to equal the authenticated identity (case-insensitive). FDP_ACF.1 identity binding.
require_san_match: boolRequire the authenticated identity to appear as a Subject Alternative Name entry of the matching type. FDP_ACF.1 identity binding.
permitted_dns_names: &'a [String]Allowlist of permitted dNSName patterns (RFC 6125). When non-empty, every dNSName SAN in the CSR must match one entry.
permitted_ip_addresses: &'a [String]Allowlist of permitted iPAddress SANs (textual form). When non-empty, every iPAddress SAN in the CSR must equal one entry.
permitted_emails: &'a [String]Allowlist of permitted rfc822Name patterns. When non-empty, every rfc822Name SAN in the CSR must match one entry.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for EnrollAuthzPolicy<'a>
impl<'a> Clone for EnrollAuthzPolicy<'a>
Source§fn clone(&self) -> EnrollAuthzPolicy<'a>
fn clone(&self) -> EnrollAuthzPolicy<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for EnrollAuthzPolicy<'a>
impl<'a> Debug for EnrollAuthzPolicy<'a>
impl<'a> Copy for EnrollAuthzPolicy<'a>
Auto Trait Implementations§
impl<'a> Freeze for EnrollAuthzPolicy<'a>
impl<'a> RefUnwindSafe for EnrollAuthzPolicy<'a>
impl<'a> Send for EnrollAuthzPolicy<'a>
impl<'a> Sync for EnrollAuthzPolicy<'a>
impl<'a> Unpin for EnrollAuthzPolicy<'a>
impl<'a> UnsafeUnpin for EnrollAuthzPolicy<'a>
impl<'a> UnwindSafe for EnrollAuthzPolicy<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more