Interface X509Attributes.Builder

  • Method Details

    • issuer

      The distinguished name of the certificate issuer.

      Parameters:
      issuer - The distinguished name of the certificate issuer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • issuer

      The distinguished name of the certificate issuer.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to issuer(DistinguishedName).

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

      The distinguished name of the certificate subject.

      Parameters:
      subject - The distinguished name of the certificate subject.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subject

      The distinguished name of the certificate subject.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to subject(DistinguishedName).

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

      X509Attributes.Builder subjectAlternativeNames(Collection<GeneralName> subjectAlternativeNames)

      One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.

      Parameters:
      subjectAlternativeNames - One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subjectAlternativeNames

      X509Attributes.Builder subjectAlternativeNames(GeneralName... subjectAlternativeNames)

      One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.

      Parameters:
      subjectAlternativeNames - One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subjectAlternativeNames

      X509Attributes.Builder subjectAlternativeNames(Consumer<GeneralName.Builder>... subjectAlternativeNames)

      One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.

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

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

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

      X509Attributes.Builder extendedKeyUsagesWithStrings(Collection<String> extendedKeyUsages)

      Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).

      Parameters:
      extendedKeyUsages - Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • extendedKeyUsagesWithStrings

      X509Attributes.Builder extendedKeyUsagesWithStrings(String... extendedKeyUsages)

      Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).

      Parameters:
      extendedKeyUsages - Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • extendedKeyUsages

      X509Attributes.Builder extendedKeyUsages(Collection<ExtendedKeyUsageName> extendedKeyUsages)

      Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).

      Parameters:
      extendedKeyUsages - Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • extendedKeyUsages

      X509Attributes.Builder extendedKeyUsages(ExtendedKeyUsageName... extendedKeyUsages)

      Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).

      Parameters:
      extendedKeyUsages - Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyAlgorithm

      X509Attributes.Builder keyAlgorithm(String keyAlgorithm)

      The algorithm that was used to generate the public-private key pair.

      Parameters:
      keyAlgorithm - The algorithm that was used to generate the public-private key pair.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyAlgorithm

      X509Attributes.Builder keyAlgorithm(KeyAlgorithm keyAlgorithm)

      The algorithm that was used to generate the public-private key pair.

      Parameters:
      keyAlgorithm - The algorithm that was used to generate the public-private key pair.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • keyUsagesWithStrings

      X509Attributes.Builder keyUsagesWithStrings(Collection<String> keyUsages)

      A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.

      Parameters:
      keyUsages - A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyUsagesWithStrings

      X509Attributes.Builder keyUsagesWithStrings(String... keyUsages)

      A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.

      Parameters:
      keyUsages - A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyUsages

      A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.

      Parameters:
      keyUsages - A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyUsages

      X509Attributes.Builder keyUsages(KeyUsageName... keyUsages)

      A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.

      Parameters:
      keyUsages - A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serialNumber

      X509Attributes.Builder serialNumber(String serialNumber)

      The serial number assigned by the certificate authority.

      Parameters:
      serialNumber - The serial number assigned by the certificate authority.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notAfter

      X509Attributes.Builder notAfter(Instant notAfter)

      The time after which the certificate is not valid.

      Parameters:
      notAfter - The time after which the certificate is not valid.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notBefore

      X509Attributes.Builder notBefore(Instant notBefore)

      The time before which the certificate is not valid.

      Parameters:
      notBefore - The time before which the certificate is not valid.
      Returns:
      Returns a reference to this object so that method calls can be chained together.