Interface CfnCertificate.SubjectProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCertificate.SubjectProperty.Jsii$Proxy
- Enclosing class:
CfnCertificate
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCertificate.SubjectPropertystatic final classAn implementation forCfnCertificate.SubjectProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringFor CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.default StringTwo-digit code that specifies the country in which the certificate subject located.default ObjectContains 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 StringDisambiguating information for the certificate subject.default StringTypically a qualifier appended to the name of an individual.default StringFirst name.default StringConcatenation 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 StringThe locality (such as a city or town) in which the certificate subject is located.default StringLegal name of the organization with which the certificate subject is affiliated.default StringA subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.default StringTypically a shortened version of a longer GivenName .default StringThe certificate serial number.default StringgetState()State in which the subject of the certificate is located.default StringFamily name.default StringgetTitle()A title such as Mr.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCommonName
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
- See Also:
-
getCountry
Two-digit code that specifies the country in which the certificate subject located.- See Also:
-
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. For more information, see NIST’s definition of Object Identifier (OID) .Custom attributes cannot be used in combination with standard attributes.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCertificate.CustomAttributeProperty>- See Also:
-
getDistinguishedNameQualifier
Disambiguating information for the certificate subject.- See Also:
-
getGenerationQualifier
Typically a qualifier appended to the name of an individual.Examples include Jr. for junior, Sr. for senior, and III for third.
- See Also:
-
getGivenName
First name.- See Also:
-
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 .- See Also:
-
getLocality
The locality (such as a city or town) in which the certificate subject is located.- See Also:
-
getOrganization
Legal name of the organization with which the certificate subject is affiliated.- See Also:
-
getOrganizationalUnit
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.- See Also:
-
getPseudonym
Typically a shortened version of a longer GivenName .For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
- See Also:
-
getSerialNumber
The certificate serial number.- See Also:
-
getState
State in which the subject of the certificate is located.- See Also:
-
getSurname
Family name.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.
- See Also:
-
getTitle
A title such as Mr.or Ms., which is pre-pended to the name to refer formally to the certificate subject.
- See Also:
-
builder
-