Interface ASN1Subject.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ASN1Subject.Builder,ASN1Subject>,SdkBuilder<ASN1Subject.Builder,ASN1Subject>,SdkPojo
- Enclosing class:
- ASN1Subject
public static interface ASN1Subject.Builder extends SdkPojo, CopyableBuilder<ASN1Subject.Builder,ASN1Subject>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ASN1Subject.BuildercommonName(String commonName)For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.ASN1Subject.Buildercountry(String country)Two-digit code that specifies the country in which the certificate subject located.ASN1Subject.BuildercustomAttributes(Collection<CustomAttribute> customAttributes)ASN1Subject.BuildercustomAttributes(Consumer<CustomAttribute.Builder>... customAttributes)ASN1Subject.BuildercustomAttributes(CustomAttribute... customAttributes)ASN1Subject.BuilderdistinguishedNameQualifier(String distinguishedNameQualifier)Disambiguating information for the certificate subject.ASN1Subject.BuildergenerationQualifier(String generationQualifier)Typically a qualifier appended to the name of an individual.ASN1Subject.BuildergivenName(String givenName)First name.ASN1Subject.Builderinitials(String 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.ASN1Subject.Builderlocality(String locality)The locality (such as a city or town) in which the certificate subject is located.ASN1Subject.Builderorganization(String organization)Legal name of the organization with which the certificate subject is affiliated.ASN1Subject.BuilderorganizationalUnit(String organizationalUnit)A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.ASN1Subject.Builderpseudonym(String pseudonym)Typically a shortened version of a longer GivenName.ASN1Subject.BuilderserialNumber(String serialNumber)The certificate serial number.ASN1Subject.Builderstate(String state)State in which the subject of the certificate is located.ASN1Subject.Buildersurname(String surname)Family name.ASN1Subject.Buildertitle(String title)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
country
ASN1Subject.Builder country(String 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
ASN1Subject.Builder organization(String 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
ASN1Subject.Builder organizationalUnit(String 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
ASN1Subject.Builder distinguishedNameQualifier(String 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
ASN1Subject.Builder state(String 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
ASN1Subject.Builder commonName(String 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
ASN1Subject.Builder serialNumber(String 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
ASN1Subject.Builder locality(String 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
ASN1Subject.Builder title(String 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
ASN1Subject.Builder surname(String 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
ASN1Subject.Builder givenName(String givenName)
First name.
- Parameters:
givenName- First name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initials
ASN1Subject.Builder initials(String 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
ASN1Subject.Builder pseudonym(String 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
ASN1Subject.Builder generationQualifier(String 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
ASN1Subject.Builder customAttributes(Collection<CustomAttribute> 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
ASN1Subject.Builder customAttributes(CustomAttribute... 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
ASN1Subject.Builder customAttributes(Consumer<CustomAttribute.Builder>... 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).
This is a convenience method that creates an instance of theCustom attributes cannot be used in combination with standard attributes.
CustomAttribute.Builderavoiding the need to create one manually viaCustomAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#customAttributes(List.) - 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:
#customAttributes(java.util.Collection)
-
-