Struct aws_sdk_acmpca::model::extensions::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Extensions
Implementations
sourceimpl Builder
impl Builder
sourcepub fn certificate_policies(self, input: PolicyInformation) -> Self
pub fn certificate_policies(self, input: PolicyInformation) -> Self
Appends an item to certificate_policies
.
To override the contents of this collection use set_certificate_policies
.
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
sourcepub fn set_certificate_policies(
self,
input: Option<Vec<PolicyInformation>>
) -> Self
pub fn set_certificate_policies(
self,
input: Option<Vec<PolicyInformation>>
) -> Self
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
sourcepub fn extended_key_usage(self, input: ExtendedKeyUsage) -> Self
pub fn extended_key_usage(self, input: ExtendedKeyUsage) -> Self
Appends an item to extended_key_usage
.
To override the contents of this collection use set_extended_key_usage
.
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage
extension.
sourcepub fn set_extended_key_usage(
self,
input: Option<Vec<ExtendedKeyUsage>>
) -> Self
pub fn set_extended_key_usage(
self,
input: Option<Vec<ExtendedKeyUsage>>
) -> Self
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage
extension.
sourcepub fn key_usage(self, input: KeyUsage) -> Self
pub fn key_usage(self, input: KeyUsage) -> Self
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
sourcepub fn set_key_usage(self, input: Option<KeyUsage>) -> Self
pub fn set_key_usage(self, input: Option<KeyUsage>) -> Self
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
sourcepub fn subject_alternative_names(self, input: GeneralName) -> Self
pub fn subject_alternative_names(self, input: GeneralName) -> Self
Appends an item to subject_alternative_names
.
To override the contents of this collection use set_subject_alternative_names
.
The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.
sourcepub fn set_subject_alternative_names(
self,
input: Option<Vec<GeneralName>>
) -> Self
pub fn set_subject_alternative_names(
self,
input: Option<Vec<GeneralName>>
) -> Self
The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.
sourcepub fn build(self) -> Extensions
pub fn build(self) -> Extensions
Consumes the builder and constructs a Extensions
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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