Interface ASN1Subject.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ASN1Subject.Builder,
,ASN1Subject> SdkBuilder<ASN1Subject.Builder,
,ASN1Subject> SdkPojo
- Enclosing class:
ASN1Subject
-
Method Summary
Modifier and TypeMethodDescriptioncommonName
(String commonName) For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.Two-digit code that specifies the country in which the certificate subject located.customAttributes
(Collection<CustomAttribute> customAttributes) customAttributes
(Consumer<CustomAttribute.Builder>... customAttributes) customAttributes
(CustomAttribute... customAttributes) distinguishedNameQualifier
(String distinguishedNameQualifier) Disambiguating information for the certificate subject.generationQualifier
(String generationQualifier) Typically a qualifier appended to the name of an individual.First name.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.The locality (such as a city or town) in which the certificate subject is located.organization
(String organization) Legal name of the organization with which the certificate subject is affiliated.organizationalUnit
(String organizationalUnit) A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.Typically a shortened version of a longer GivenName.serialNumber
(String serialNumber) The certificate serial number.State in which the subject of the certificate is located.Family name.A title such as Mr.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
country
Two-digit code that specifies the country in which the certificate subject located.
- Parameters:
country
- Two-digit code that specifies the country in which the certificate subject located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organization
Legal name of the organization with which the certificate subject is affiliated.
- Parameters:
organization
- Legal name of the organization with which the certificate subject is affiliated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationalUnit
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
- Parameters:
organizationalUnit
- A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distinguishedNameQualifier
Disambiguating information for the certificate subject.
- Parameters:
distinguishedNameQualifier
- Disambiguating information for the certificate subject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
State in which the subject of the certificate is located.
- Parameters:
state
- State in which the subject of the certificate is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commonName
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.
- Parameters:
commonName
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serialNumber
The certificate serial number.
- Parameters:
serialNumber
- The certificate serial number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locality
The locality (such as a city or town) in which the certificate subject is located.
- Parameters:
locality
- The locality (such as a city or town) in which the certificate subject is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.
- Parameters:
title
- A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
surname
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.
- Parameters:
surname
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
givenName
First name.
- Parameters:
givenName
- First name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initials
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.
- Parameters:
initials
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pseudonym
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.
- Parameters:
pseudonym
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generationQualifier
Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
- Parameters:
generationQualifier
- Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
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.
- Parameters:
customAttributes
-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:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
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.
- Parameters:
customAttributes
-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:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
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.
CustomAttribute.Builder
avoiding the need to create one manually viaCustomAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomAttributes(List<CustomAttribute>)
.- Parameters:
customAttributes
- a consumer that will call methods onCustomAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-