@Stability(value=Stable)
public static interface CfnCertificate.SubjectProperty
extends software.amazon.jsii.JsiiSerializable
The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.acmpca.*;
SubjectProperty subjectProperty = SubjectProperty.builder()
.commonName("commonName")
.country("country")
.customAttributes(List.of(CustomAttributeProperty.builder()
.objectIdentifier("objectIdentifier")
.value("value")
.build()))
.distinguishedNameQualifier("distinguishedNameQualifier")
.generationQualifier("generationQualifier")
.givenName("givenName")
.initials("initials")
.locality("locality")
.organization("organization")
.organizationalUnit("organizationalUnit")
.pseudonym("pseudonym")
.serialNumber("serialNumber")
.state("state")
.surname("surname")
.title("title")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCertificate.SubjectProperty.Builder
A builder for
CfnCertificate.SubjectProperty |
static class |
CfnCertificate.SubjectProperty.Jsii$Proxy
An implementation for
CfnCertificate.SubjectProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCertificate.SubjectProperty.Builder |
builder() |
default String |
getCommonName()
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
|
default String |
getCountry()
Two-digit code that specifies the country in which the certificate subject located.
|
default Object |
getCustomAttributes()
Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value.
|
default String |
getDistinguishedNameQualifier()
Disambiguating information for the certificate subject.
|
default String |
getGenerationQualifier()
Typically a qualifier appended to the name of an individual.
|
default String |
getGivenName()
First name.
|
default String |
getInitials()
Concatenation that typically contains the first letter of the *GivenName* , the first letter of the middle name if one exists, and the first letter of the *Surname* .
|
default String |
getLocality()
The locality (such as a city or town) in which the certificate subject is located.
|
default String |
getOrganization()
Legal name of the organization with which the certificate subject is affiliated.
|
default String |
getOrganizationalUnit()
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
|
default String |
getPseudonym()
Typically a shortened version of a longer *GivenName* .
|
default String |
getSerialNumber()
The certificate serial number.
|
default String |
getState()
State in which the subject of the certificate is located.
|
default String |
getSurname()
Family name.
|
default String |
getTitle()
A title such as Mr.
|
@Stability(value=Stable) @Nullable default String getCommonName()
Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
@Stability(value=Stable) @Nullable default String getCountry()
@Stability(value=Stable) @Nullable default Object getCustomAttributes()
Custom attributes cannot be used in combination with standard attributes.
@Stability(value=Stable) @Nullable default String getDistinguishedNameQualifier()
@Stability(value=Stable) @Nullable default String getGenerationQualifier()
Examples include Jr. for junior, Sr. for senior, and III for third.
@Stability(value=Stable) @Nullable default String getGivenName()
@Stability(value=Stable) @Nullable default String getInitials()
@Stability(value=Stable) @Nullable default String getLocality()
@Stability(value=Stable) @Nullable default String getOrganization()
@Stability(value=Stable) @Nullable default String getOrganizationalUnit()
@Stability(value=Stable) @Nullable default String getPseudonym()
For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
@Stability(value=Stable) @Nullable default String getSerialNumber()
@Stability(value=Stable) @Nullable default String getState()
@Stability(value=Stable) @Nullable default String getSurname()
In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
@Stability(value=Stable) @Nullable default String getTitle()
or Ms., which is pre-pended to the name to refer formally to the certificate subject.
@Stability(value=Stable) static CfnCertificate.SubjectProperty.Builder builder()
Copyright © 2022. All rights reserved.