Interface TrustBundleEntry.Builder

  • Method Details

    • trustDomain

      TrustBundleEntry.Builder trustDomain(String trustDomain)

      The SPIFFE trust domain that the trust bundle is for, for example example.org. The SPIFFE IDs of workloads in this trust domain begin with spiffe:// followed by the trust domain.

      Parameters:
      trustDomain - The SPIFFE trust domain that the trust bundle is for, for example example.org. The SPIFFE IDs of workloads in this trust domain begin with spiffe:// followed by the trust domain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bundle

      The SPIFFE trust bundle for the trust domain, as a JSON document. The document is a JSON Web Key (JWK) Set, as defined in RFC 7517, with the following members:

      • spiffe_refresh_hint – How often, in seconds, to get the trust bundle again.

      • keys – The public keys for the trust domain. A key with a use value of x509-svid verifies X509-SVIDs, and its x5c member contains the root certificate authority (CA) certificate. A key with a use value of jwt-svid verifies JWT-SVIDs, and its kid member matches the kid header of the JWT-SVIDs that it signs.

      For more information, see SPIFFE Trust Domain and Bundle.

      Parameters:
      bundle - The SPIFFE trust bundle for the trust domain, as a JSON document. The document is a JSON Web Key (JWK) Set, as defined in RFC 7517, with the following members:

      • spiffe_refresh_hint – How often, in seconds, to get the trust bundle again.

      • keys – The public keys for the trust domain. A key with a use value of x509-svid verifies X509-SVIDs, and its x5c member contains the root certificate authority (CA) certificate. A key with a use value of jwt-svid verifies JWT-SVIDs, and its kid member matches the kid header of the JWT-SVIDs that it signs.

      For more information, see SPIFFE Trust Domain and Bundle.

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