Interface Extensions.Builder

    • Method Detail

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

        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:
        #certificatePolicies(java.util.Collection)
      • 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).

        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:
        #extendedKeyUsage(java.util.Collection)
      • 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.
      • 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).

        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:
        #subjectAlternativeNames(java.util.Collection)
      • 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.