Interface ImportCertificateRequest.Builder

    • Method Detail

      • usage

        ImportCertificateRequest.Builder usage​(String usage)

        Specifies how this certificate is used. It can be used in the following ways:

        • SIGNING: For signing AS2 messages

        • ENCRYPTION: For encrypting AS2 messages

        • TLS: For securing AS2 communications sent over HTTPS

        Parameters:
        usage - Specifies how this certificate is used. It can be used in the following ways:

        • SIGNING: For signing AS2 messages

        • ENCRYPTION: For encrypting AS2 messages

        • TLS: For securing AS2 communications sent over HTTPS

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CertificateUsageType, CertificateUsageType
      • usage

        ImportCertificateRequest.Builder usage​(CertificateUsageType usage)

        Specifies how this certificate is used. It can be used in the following ways:

        • SIGNING: For signing AS2 messages

        • ENCRYPTION: For encrypting AS2 messages

        • TLS: For securing AS2 communications sent over HTTPS

        Parameters:
        usage - Specifies how this certificate is used. It can be used in the following ways:

        • SIGNING: For signing AS2 messages

        • ENCRYPTION: For encrypting AS2 messages

        • TLS: For securing AS2 communications sent over HTTPS

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CertificateUsageType, CertificateUsageType
      • certificate

        ImportCertificateRequest.Builder certificate​(String certificate)
        • For the CLI, provide a file path for a certificate in URI format. For example, --certificate file://encryption-cert.pem. Alternatively, you can provide the raw content.

        • For the SDK, specify the raw content of a certificate file. For example, --certificate "`cat encryption-cert.pem`".

        Parameters:
        certificate -
      • For the CLI, provide a file path for a certificate in URI format. For example, --certificate file://encryption-cert.pem. Alternatively, you can provide the raw content.

      • For the SDK, specify the raw content of a certificate file. For example, --certificate "`cat encryption-cert.pem`".

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

        ImportCertificateRequest.Builder certificateChain​(String certificateChain)

        An optional list of certificates that make up the chain for the certificate that's being imported.

        Parameters:
        certificateChain - An optional list of certificates that make up the chain for the certificate that's being imported.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateKey

        ImportCertificateRequest.Builder privateKey​(String privateKey)
        • For the CLI, provide a file path for a private key in URI format.For example, --private-key file://encryption-key.pem. Alternatively, you can provide the raw content of the private key file.

        • For the SDK, specify the raw content of a private key file. For example, --private-key "`cat encryption-key.pem`"

        Parameters:
        privateKey -
      • For the CLI, provide a file path for a private key in URI format.For example, --private-key file://encryption-key.pem. Alternatively, you can provide the raw content of the private key file.

      • For the SDK, specify the raw content of a private key file. For example, --private-key "`cat encryption-key.pem`"

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

        ImportCertificateRequest.Builder activeDate​(Instant activeDate)

        An optional date that specifies when the certificate becomes active.

        Parameters:
        activeDate - An optional date that specifies when the certificate becomes active.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • inactiveDate

        ImportCertificateRequest.Builder inactiveDate​(Instant inactiveDate)

        An optional date that specifies when the certificate becomes inactive.

        Parameters:
        inactiveDate - An optional date that specifies when the certificate becomes inactive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        ImportCertificateRequest.Builder description​(String description)

        A short description that helps identify the certificate.

        Parameters:
        description - A short description that helps identify the certificate.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ImportCertificateRequest.Builder tags​(Collection<Tag> tags)

        Key-value pairs that can be used to group and search for certificates.

        Parameters:
        tags - Key-value pairs that can be used to group and search for certificates.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ImportCertificateRequest.Builder tags​(Tag... tags)

        Key-value pairs that can be used to group and search for certificates.

        Parameters:
        tags - Key-value pairs that can be used to group and search for certificates.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ImportCertificateRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        Key-value pairs that can be used to group and search for certificates.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)