Struct aws_sdk_acmpca::types::Extensions
source · #[non_exhaustive]pub struct Extensions {
pub certificate_policies: Option<Vec<PolicyInformation>>,
pub extended_key_usage: Option<Vec<ExtendedKeyUsage>>,
pub key_usage: Option<KeyUsage>,
pub subject_alternative_names: Option<Vec<GeneralName>>,
pub custom_extensions: Option<Vec<CustomExtension>>,
}
Expand description
Contains X.509 extension information for a certificate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.certificate_policies: Option<Vec<PolicyInformation>>
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.
extended_key_usage: Option<Vec<ExtendedKeyUsage>>
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage
extension.
key_usage: Option<KeyUsage>
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
subject_alternative_names: Option<Vec<GeneralName>>
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.
custom_extensions: Option<Vec<CustomExtension>>
Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
Implementations§
source§impl Extensions
impl Extensions
sourcepub fn certificate_policies(&self) -> &[PolicyInformation]
pub fn certificate_policies(&self) -> &[PolicyInformation]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .certificate_policies.is_none()
.
sourcepub fn extended_key_usage(&self) -> &[ExtendedKeyUsage]
pub fn extended_key_usage(&self) -> &[ExtendedKeyUsage]
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage
extension.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .extended_key_usage.is_none()
.
sourcepub fn key_usage(&self) -> Option<&KeyUsage>
pub fn key_usage(&self) -> Option<&KeyUsage>
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) -> &[GeneralName]
pub fn subject_alternative_names(&self) -> &[GeneralName]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .subject_alternative_names.is_none()
.
sourcepub fn custom_extensions(&self) -> &[CustomExtension]
pub fn custom_extensions(&self) -> &[CustomExtension]
Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_extensions.is_none()
.
source§impl Extensions
impl Extensions
sourcepub fn builder() -> ExtensionsBuilder
pub fn builder() -> ExtensionsBuilder
Creates a new builder-style object to manufacture Extensions
.
Trait Implementations§
source§impl Clone for Extensions
impl Clone for Extensions
source§fn clone(&self) -> Extensions
fn clone(&self) -> Extensions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Extensions
impl Debug for Extensions
source§impl PartialEq for Extensions
impl PartialEq for Extensions
source§fn eq(&self, other: &Extensions) -> bool
fn eq(&self, other: &Extensions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Extensions
Auto Trait Implementations§
impl Freeze for Extensions
impl RefUnwindSafe for Extensions
impl Send for Extensions
impl Sync for Extensions
impl Unpin for Extensions
impl UnwindSafe for Extensions
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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