Interface CredHubCertificateOperations

All Known Implementing Classes:
CredHubCertificateTemplate

public interface CredHubCertificateOperations
Specifies the interactions with CredHub to retrieve, regenerate, and update certificates.
Author:
Scott Frederick
  • Method Details

    • getAll

      Retrieve all certificates from CredHub.
      Returns:
      a collection of certificates
    • getByName

      Retrieve a certificate using its name.
      Parameters:
      name - the name of the certificate credential; must not be null
      Returns:
      the details of the retrieved certificate credential
    • regenerate

      CertificateCredentialDetails regenerate(String id, boolean setAsTransitional)
      Regenerate a certificate.
      Parameters:
      id - the CredHub-generated ID of the certificate credential; must not be null and must be an ID returned by getAll() or getByName(CredentialName)
      setAsTransitional - true to mark the certificate version transitional; false otherwise
      Returns:
      the details of the certificate credential
    • regenerate

      List<CredentialName> regenerate(CredentialName certificateName)
      Regenerate all certificates in CredHub that were signed by the specified certificate.
      Parameters:
      certificateName - the name of the signing certificate credential; must not be null
      Returns:
      the names of all regenerated certificate credentials
    • updateTransitionalVersion

      List<CertificateCredentialDetails> updateTransitionalVersion(String id, String versionId)
      Make the specified version of a certificate the transitional version.
      Parameters:
      id - the CredHub-generated ID of the certificate credential; must not be null and must be an ID returned by getAll() or getByName(CredentialName)
      versionId - the CredHub-generated ID of the version of the certificate credential that should be marked transitional, or null to indicate that no version is transitional
      Returns:
      the details of the certificate credential, including all versions