Interface GetCertificateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetCertificateRequest.Builder,,GetCertificateRequest> SdkBuilder<GetCertificateRequest.Builder,,GetCertificateRequest> SdkPojo,SdkRequest.Builder,StsRequest.Builder
- Enclosing class:
GetCertificateRequest
-
Method Summary
Modifier and TypeMethodDescriptioncertificateSigningRequest(String certificateSigningRequest) A PEM-encoded PKCS #10 certificate signing request (CSR) that contains the public key for the certificate.maxDurationSeconds(Integer maxDurationSeconds) The time, in seconds, that the certificate is valid.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.sts.model.StsRequest.Builder
build
-
Method Details
-
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
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetCertificateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-