Interface Extensions.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Extensions.Builder,Extensions>, SdkBuilder<Extensions.Builder,Extensions>, SdkPojo
Enclosing class:
Extensions

public static interface Extensions.Builder extends SdkPojo, CopyableBuilder<Extensions.Builder,Extensions>
  • Method Details

    • certificatePolicies

      Extensions.Builder certificatePolicies(Collection<PolicyInformation> certificatePolicies)

      Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).

      In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.

      Parameters:
      certificatePolicies - Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).

      In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificatePolicies

      Extensions.Builder certificatePolicies(PolicyInformation... certificatePolicies)

      Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).

      In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.

      Parameters:
      certificatePolicies - Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).

      In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificatePolicies

      Extensions.Builder certificatePolicies(Consumer<PolicyInformation.Builder>... certificatePolicies)

      Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).

      In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.

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

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

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

      Extensions.Builder extendedKeyUsage(Collection<ExtendedKeyUsage> extendedKeyUsage)

      Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage extension.

      Parameters:
      extendedKeyUsage - Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • extendedKeyUsage

      Extensions.Builder extendedKeyUsage(ExtendedKeyUsage... extendedKeyUsage)

      Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage extension.

      Parameters:
      extendedKeyUsage - Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • extendedKeyUsage

      Extensions.Builder extendedKeyUsage(Consumer<ExtendedKeyUsage.Builder>... extendedKeyUsage)

      Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage extension.

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

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

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

      Extensions.Builder keyUsage(KeyUsage keyUsage)
      Sets the value of the KeyUsage property for this object.
      Parameters:
      keyUsage - The new value for the KeyUsage property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyUsage

      default Extensions.Builder keyUsage(Consumer<KeyUsage.Builder> keyUsage)
      Sets the value of the KeyUsage property for this object. This is a convenience method that creates an instance of the KeyUsage.Builder avoiding the need to create one manually via KeyUsage.builder().

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

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

      Extensions.Builder subjectAlternativeNames(Collection<GeneralName> subjectAlternativeNames)

      The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.

      Parameters:
      subjectAlternativeNames - The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subjectAlternativeNames

      Extensions.Builder subjectAlternativeNames(GeneralName... subjectAlternativeNames)

      The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.

      Parameters:
      subjectAlternativeNames - The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subjectAlternativeNames

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

      The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.

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

      Extensions.Builder customExtensions(Collection<CustomExtension> customExtensions)

      Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.

      Parameters:
      customExtensions -

      Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customExtensions

      Extensions.Builder customExtensions(CustomExtension... customExtensions)

      Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.

      Parameters:
      customExtensions -

      Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customExtensions

      Extensions.Builder customExtensions(Consumer<CustomExtension.Builder>... customExtensions)

      Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.

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

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

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