pub struct CertificateAuthorityPolicy {
pub allowed_common_names: Option<Vec<String>>,
pub allowed_config_list: Option<AllowedConfigList>,
pub allowed_issuance_modes: Option<IssuanceModes>,
pub allowed_locations_and_organizations: Option<Vec<Subject>>,
pub allowed_sans: Option<AllowedSubjectAltNames>,
pub maximum_lifetime: Option<String>,
pub overwrite_config_values: Option<ReusableConfigWrapper>,
}
Expand description
The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy.
This type is not used in any activity, and only used as part of another schema.
Fields
allowed_common_names: Option<Vec<String>>
Optional. If any value is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed value. If no value is specified, all values will be allowed for this fied. Glob patterns are also supported.
allowed_config_list: Option<AllowedConfigList>
Optional. All Certificates issued by the CertificateAuthority must match at least one listed ReusableConfigWrapper in the list.
allowed_issuance_modes: Option<IssuanceModes>
Optional. If specified, then only methods allowed in the IssuanceModes may be used to issue Certificates.
allowed_locations_and_organizations: Option<Vec<Subject>>
Optional. If any Subject is specified here, then all Certificates issued by the CertificateAuthority must match at least one listed Subject. If a Subject has an empty field, any value will be allowed for that field.
allowed_sans: Option<AllowedSubjectAltNames>
Optional. If a AllowedSubjectAltNames is specified here, then all Certificates issued by the CertificateAuthority must match AllowedSubjectAltNames. If no value or an empty value is specified, any value will be allowed for the SubjectAltNames field.
maximum_lifetime: Option<String>
Optional. The maximum lifetime allowed by the CertificateAuthority. Note that if the any part if the issuing chain expires before a Certificate’s requested maximum_lifetime, the effective lifetime will be explicitly truncated.
overwrite_config_values: Option<ReusableConfigWrapper>
Optional. All Certificates issued by the CertificateAuthority will use the provided configuration values, overwriting any requested configuration values.
Trait Implementations
sourceimpl Clone for CertificateAuthorityPolicy
impl Clone for CertificateAuthorityPolicy
sourcefn clone(&self) -> CertificateAuthorityPolicy
fn clone(&self) -> CertificateAuthorityPolicy
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 CertificateAuthorityPolicy
impl Debug for CertificateAuthorityPolicy
sourceimpl Default for CertificateAuthorityPolicy
impl Default for CertificateAuthorityPolicy
sourcefn default() -> CertificateAuthorityPolicy
fn default() -> CertificateAuthorityPolicy
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CertificateAuthorityPolicy
impl<'de> Deserialize<'de> for CertificateAuthorityPolicy
sourcefn 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 Part for CertificateAuthorityPolicy
Auto Trait Implementations
impl RefUnwindSafe for CertificateAuthorityPolicy
impl Send for CertificateAuthorityPolicy
impl Sync for CertificateAuthorityPolicy
impl Unpin for CertificateAuthorityPolicy
impl UnwindSafe for CertificateAuthorityPolicy
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more