Class CfnCertificate.ExtensionsProperty
Contains X.509 extension information for a certificate.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ACMPCA
Assembly: Amazon.CDK.AWS.ACMPCA.dll
Syntax (csharp)
public class ExtensionsProperty : Object, CfnCertificate.IExtensionsProperty
Syntax (vb)
Public Class ExtensionsProperty
Inherits Object
Implements CfnCertificate.IExtensionsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ACMPCA;
var extensionsProperty = new ExtensionsProperty {
CertificatePolicies = new [] { new PolicyInformationProperty {
CertPolicyId = "certPolicyId",
// the properties below are optional
PolicyQualifiers = new [] { new PolicyQualifierInfoProperty {
PolicyQualifierId = "policyQualifierId",
Qualifier = new QualifierProperty {
CpsUri = "cpsUri"
}
} }
} },
CustomExtensions = new [] { new CustomExtensionProperty {
ObjectIdentifier = "objectIdentifier",
Value = "value",
// the properties below are optional
Critical = false
} },
ExtendedKeyUsage = new [] { new ExtendedKeyUsageProperty {
ExtendedKeyUsageObjectIdentifier = "extendedKeyUsageObjectIdentifier",
ExtendedKeyUsageType = "extendedKeyUsageType"
} },
KeyUsage = new KeyUsageProperty {
CrlSign = false,
DataEncipherment = false,
DecipherOnly = false,
DigitalSignature = false,
EncipherOnly = false,
KeyAgreement = false,
KeyCertSign = false,
KeyEncipherment = false,
NonRepudiation = false
},
SubjectAlternativeNames = new [] { new GeneralNameProperty {
DirectoryName = new SubjectProperty {
CommonName = "commonName",
Country = "country",
CustomAttributes = new [] { new CustomAttributeProperty {
ObjectIdentifier = "objectIdentifier",
Value = "value"
} },
DistinguishedNameQualifier = "distinguishedNameQualifier",
GenerationQualifier = "generationQualifier",
GivenName = "givenName",
Initials = "initials",
Locality = "locality",
Organization = "organization",
OrganizationalUnit = "organizationalUnit",
Pseudonym = "pseudonym",
SerialNumber = "serialNumber",
State = "state",
Surname = "surname",
Title = "title"
},
DnsName = "dnsName",
EdiPartyName = new EdiPartyNameProperty {
NameAssigner = "nameAssigner",
PartyName = "partyName"
},
IpAddress = "ipAddress",
OtherName = new OtherNameProperty {
TypeId = "typeId",
Value = "value"
},
RegisteredId = "registeredId",
Rfc822Name = "rfc822Name",
UniformResourceIdentifier = "uniformResourceIdentifier"
} }
};
Synopsis
Constructors
ExtensionsProperty() |
Properties
CertificatePolicies | Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. |
CustomExtensions | 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.. |
ExtendedKeyUsage | Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the |
KeyUsage | Defines one or more purposes for which the key contained in the certificate can be used. |
SubjectAlternativeNames | The subject alternative name extension allows identities to be bound to the subject of the certificate. |
Constructors
ExtensionsProperty()
public ExtensionsProperty()
Properties
CertificatePolicies
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers.
public object CertificatePolicies { get; set; }
Property Value
System.Object
Remarks
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.
CustomExtensions
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..
public object CustomExtensions { get; set; }
Property Value
System.Object
Remarks
ExtendedKeyUsage
Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage
extension.
public object ExtendedKeyUsage { get; set; }
Property Value
System.Object
Remarks
KeyUsage
Defines one or more purposes for which the key contained in the certificate can be used.
public object KeyUsage { get; set; }
Property Value
System.Object
Remarks
Default value for each option is false.
SubjectAlternativeNames
The subject alternative name extension allows identities to be bound to the subject of the certificate.
public object SubjectAlternativeNames { get; set; }
Property Value
System.Object
Remarks
These identities may be included in addition to or in place of the identity in the subject field of the certificate.