Interface GetCertificateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCertificateResponse.Builder,,GetCertificateResponse> SdkBuilder<GetCertificateResponse.Builder,,GetCertificateResponse> SdkPojo,SdkResponse.Builder,StsResponse.Builder
- Enclosing class:
GetCertificateResponse
-
Method Summary
Modifier and TypeMethodDescriptioncertificate(String certificate) The issued X.509 certificate (X509-SVID), PEM-encoded.certificateChain(String certificateChain) The PEM-encoded certificate chain that links the certificate to the root certificate authority (CA), in the same format that Amazon Web Services Private CA returns.The date and time, in UTC, when the certificate expires.The date and time, in UTC, when the certificate becomes valid.The SPIFFE ID of the workload, for examplespiffe://example.org/payments/checkout.Methods 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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.sts.model.StsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
certificate
The issued X.509 certificate (X509-SVID), PEM-encoded. The certificate has an empty subject distinguished name (DN) and one URI subject alternative name (SAN) that contains the SPIFFE ID of the workload. You can use the certificate for both client and server authentication.
- Parameters:
certificate- The issued X.509 certificate (X509-SVID), PEM-encoded. The certificate has an empty subject distinguished name (DN) and one URI subject alternative name (SAN) that contains the SPIFFE ID of the workload. You can use the certificate for both client and server authentication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateChain
The PEM-encoded certificate chain that links the certificate to the root certificate authority (CA), in the same format that Amazon Web Services Private CA returns. The chain can include the root CA certificate. Don't use the chain as a source of trust anchors. To get the trust anchors for the provider, call GetTrustBundles.
- Parameters:
certificateChain- The PEM-encoded certificate chain that links the certificate to the root certificate authority (CA), in the same format that Amazon Web Services Private CA returns. The chain can include the root CA certificate. Don't use the chain as a source of trust anchors. To get the trust anchors for the provider, call GetTrustBundles.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notBefore
The date and time, in UTC, when the certificate becomes valid. To allow for differences between clocks, Amazon Web Services STS sets this to five minutes before it issues the certificate.
- Parameters:
notBefore- The date and time, in UTC, when the certificate becomes valid. To allow for differences between clocks, Amazon Web Services STS sets this to five minutes before it issues the certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notAfter
The date and time, in UTC, when the certificate expires. This is
MaxDurationSecondsafter Amazon Web Services STS issued the certificate, or 12 hours if you didn't specifyMaxDurationSeconds.- Parameters:
notAfter- The date and time, in UTC, when the certificate expires. This isMaxDurationSecondsafter Amazon Web Services STS issued the certificate, or 12 hours if you didn't specifyMaxDurationSeconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
The SPIFFE ID of the workload, for example
spiffe://example.org/payments/checkout. This is the same value as the URI subject alternative name (SAN) of the certificate, and comes from the calling session.- Parameters:
subject- The SPIFFE ID of the workload, for examplespiffe://example.org/payments/checkout. This is the same value as the URI subject alternative name (SAN) of the certificate, and comes from the calling session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-