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 Details

    • 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

      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

      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).

      Custom attributes cannot be used in combination with standard attributes.

      This is a convenience method that creates an instance of the CustomAttribute.Builder avoiding the need to create one manually via CustomAttribute.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to customAttributes(List<CustomAttribute>).

      Parameters:
      customAttributes - a consumer that will call methods on CustomAttribute.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: