Interface GetCertificateResponse.Builder

  • Method Details

    • certificate

      GetCertificateResponse.Builder certificate(String 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

      GetCertificateResponse.Builder 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 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 MaxDurationSeconds after Amazon Web Services STS issued the certificate, or 12 hours if you didn't specify MaxDurationSeconds.

      Parameters:
      notAfter - The date and time, in UTC, when the certificate expires. This is MaxDurationSeconds after Amazon Web Services STS issued the certificate, or 12 hours if you didn't specify MaxDurationSeconds.
      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 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.