Class ImportCertificateRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>

@Generated("software.amazon.awssdk:codegen") public final class ImportCertificateRequest extends TransferRequest implements ToCopyableBuilder<ImportCertificateRequest.Builder,ImportCertificateRequest>
  • Method Details

    • usage

      public final 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

      If the service returns an enum value that is not available in the current SDK version, usage will return CertificateUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from usageAsString().

      Returns:
      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

      See Also:
    • usageAsString

      public final String usageAsString()

      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

      If the service returns an enum value that is not available in the current SDK version, usage will return CertificateUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from usageAsString().

      Returns:
      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

      See Also:
    • certificate

      public final 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`".

      You can provide both the certificate and its chain in this parameter, without needing to use the CertificateChain parameter. If you use this parameter for both the certificate and its chain, do not use the CertificateChain parameter.

      Returns:
    • 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`".

    You can provide both the certificate and its chain in this parameter, without needing to use the CertificateChain parameter. If you use this parameter for both the certificate and its chain, do not use the CertificateChain parameter.