Interface DistinguishedName.Builder

  • Method Details

    • commonName

      DistinguishedName.Builder commonName(String commonName)

      The common name (CN) attribute.

      Parameters:
      commonName - The common name (CN) attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainComponents

      DistinguishedName.Builder domainComponents(Collection<String> domainComponents)

      The domain component attributes.

      Parameters:
      domainComponents - The domain component attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainComponents

      DistinguishedName.Builder domainComponents(String... domainComponents)

      The domain component attributes.

      Parameters:
      domainComponents - The domain component attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • country

      The country (C) attribute.

      Parameters:
      country - The country (C) attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customAttributes

      DistinguishedName.Builder customAttributes(Collection<CustomAttribute> customAttributes)

      A list of custom attributes in the distinguished name. Each custom attribute contains an object identifier (OID) and its corresponding value.

      Parameters:
      customAttributes - A list of custom attributes in the distinguished name. Each custom attribute contains an object identifier (OID) and its corresponding value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customAttributes

      DistinguishedName.Builder customAttributes(CustomAttribute... customAttributes)

      A list of custom attributes in the distinguished name. Each custom attribute contains an object identifier (OID) and its corresponding value.

      Parameters:
      customAttributes - A list of custom attributes in the distinguished name. Each custom attribute contains an object identifier (OID) and its corresponding value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customAttributes

      DistinguishedName.Builder customAttributes(Consumer<CustomAttribute.Builder>... customAttributes)

      A list of custom attributes in the distinguished name. Each custom attribute contains an object identifier (OID) and its corresponding value.

      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:
    • distinguishedNameQualifier

      DistinguishedName.Builder distinguishedNameQualifier(String distinguishedNameQualifier)

      The distinguished name qualifier attribute.

      Parameters:
      distinguishedNameQualifier - The distinguished name qualifier attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • generationQualifier

      DistinguishedName.Builder generationQualifier(String generationQualifier)

      The generation qualifier attribute.

      Parameters:
      generationQualifier - The generation qualifier attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • givenName

      DistinguishedName.Builder givenName(String givenName)

      The given name attribute.

      Parameters:
      givenName - The given name attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • initials

      DistinguishedName.Builder initials(String initials)

      The initials attribute.

      Parameters:
      initials - The initials attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • locality

      DistinguishedName.Builder locality(String locality)

      The locality (L) attribute.

      Parameters:
      locality - The locality (L) attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organization

      DistinguishedName.Builder organization(String organization)

      The organization (O) attribute.

      Parameters:
      organization - The organization (O) attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationalUnit

      DistinguishedName.Builder organizationalUnit(String organizationalUnit)

      The organizational unit (OU) attribute.

      Parameters:
      organizationalUnit - The organizational unit (OU) attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pseudonym

      DistinguishedName.Builder pseudonym(String pseudonym)

      The pseudonym attribute.

      Parameters:
      pseudonym - The pseudonym attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serialNumber

      DistinguishedName.Builder serialNumber(String serialNumber)

      The serial number attribute.

      Parameters:
      serialNumber - The serial number attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state or province (ST) attribute.

      Parameters:
      state - The state or province (ST) attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • surname

      The surname attribute.

      Parameters:
      surname - The surname attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      The title attribute.

      Parameters:
      title - The title attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.