Interface GetCertificateRequest.Builder

  • Method Details

    • certificateSigningRequest

      GetCertificateRequest.Builder certificateSigningRequest(String certificateSigningRequest)

      A PEM-encoded PKCS #10 certificate signing request (CSR) that contains the public key for the certificate. The CSR must be signed with the matching private key.

      Amazon Web Services STS uses only the public key from the CSR. Amazon Web Services STS ignores the subject, subject alternative names (SANs), and requested extensions in the CSR. The signing algorithm of the certificate is set by the signer of the workload identity provider, not by the CSR.

      The CSR can be up to 32,768 characters long. If the CSR is blank, can't be parsed, has a signature that doesn't verify, or uses a key type or key size that the signer doesn't support, the request fails with MalformedCertificateSigningRequestException.

      Parameters:
      certificateSigningRequest - A PEM-encoded PKCS #10 certificate signing request (CSR) that contains the public key for the certificate. The CSR must be signed with the matching private key.

      Amazon Web Services STS uses only the public key from the CSR. Amazon Web Services STS ignores the subject, subject alternative names (SANs), and requested extensions in the CSR. The signing algorithm of the certificate is set by the signer of the workload identity provider, not by the CSR.

      The CSR can be up to 32,768 characters long. If the CSR is blank, can't be parsed, has a signature that doesn't verify, or uses a key type or key size that the signer doesn't support, the request fails with MalformedCertificateSigningRequestException.

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

      GetCertificateRequest.Builder maxDurationSeconds(Integer maxDurationSeconds)

      The time, in seconds, that the certificate is valid. The value can range from 3,600 seconds (1 hour) to 43,200 seconds (12 hours). If you don't specify a value, the certificate is valid for 43,200 seconds (12 hours).

      The expiration of the calling session doesn't limit this value. The certificate can remain valid after the session that requested it expires. This differs from GetWebIdentityToken, which rejects a token duration that ends after the calling session expires.

      Parameters:
      maxDurationSeconds - The time, in seconds, that the certificate is valid. The value can range from 3,600 seconds (1 hour) to 43,200 seconds (12 hours). If you don't specify a value, the certificate is valid for 43,200 seconds (12 hours).

      The expiration of the calling session doesn't limit this value. The certificate can remain valid after the session that requested it expires. This differs from GetWebIdentityToken, which rejects a token duration that ends after the calling session expires.

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

      GetCertificateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.