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 Summary
Modifier and TypeMethodDescriptiongetAll()
Retrieve all certificates from CredHub.getByName
(CredentialName name) Retrieve a certificate using its name.regenerate
(String id, boolean setAsTransitional) Regenerate a certificate.regenerate
(CredentialName certificateName) Regenerate all certificates in CredHub that were signed by the specified certificate.updateTransitionalVersion
(String id, String versionId) Make the specified version of a certificate the transitional version.
-
Method Details
-
getAll
List<CertificateSummary> 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
Regenerate a certificate.- Parameters:
id
- the CredHub-generated ID of the certificate credential; must not be null and must be an ID returned bygetAll()
orgetByName(CredentialName)
setAsTransitional
-true
to mark the certificate version transitional;false
otherwise- Returns:
- the details of the certificate credential
-
regenerate
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
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 bygetAll()
orgetByName(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
-