| Modifier and Type | Class and Description |
|---|---|
static class |
CloudConnector.ApiClientInformation |
static class |
CloudConnector.CertificateRequestsPayload |
static class |
CloudConnector.CertificateRequestsResponse |
| Constructor and Description |
|---|
CloudConnector(Cloud cloud) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(Authentication auth)
Authenticate the user with Venafi using either API key for Venafi Cloud or user and password
for TPP
|
String |
certificateAsPem(String requestId)
Deprecated.
|
CertificateRequest |
generateRequest(ZoneConfiguration zoneConfig,
CertificateRequest request)
GenerateRequest creates a new certificate request, based on the zone/policy configuration and
the user data
|
PolicySpecification |
getPolicy(String policyName)
Returns the policySpecification from the policy which matches with the policyName argument.
|
ConnectorType |
getType() |
String |
getVendorAndProductName() |
ImportResponse |
importCertificate(ImportRequest request)
Import an external certificate into Venafi.
|
void |
ping()
Attempt to connect the Venafi API and returns an error if it cannot
|
Policy |
readPolicyConfiguration(String zone)
Reads the policy configuration for a specific zone in Venafi
|
ZoneConfiguration |
readZoneConfiguration(String zone)
Reads the zone configuration needed for generating and requesting a certificate
|
String |
renewCertificate(RenewalRequest request)
Attempts to renew a certificate
|
String |
requestCertificate(CertificateRequest request,
String zone)
Submits the CSR to Venafi for processing
|
String |
requestCertificate(CertificateRequest request,
ZoneConfiguration zoneConfiguration)
Submits the CSR to Venafi for processing
|
String |
requestSshCertificate(SshCertificateRequest sshCertificateRequest)
Request a new SSH Certificate.
|
PEMCollection |
retrieveCertificate(CertificateRequest request)
Retrieves the certificate for the specific ID
|
SshCertRetrieveDetails |
retrieveSshCertificate(SshCertificateRequest sshCertificateRequest)
Retrieve a requested SSH Certificate
|
SshConfig |
retrieveSshConfig(SshCaTemplateRequest sshCaTemplateRequest)
Retrieve the
SshConfig of the CA specified in the
SshCaTemplateRequest. |
void |
revokeCertificate(RevocationRequest request)
Attempts to revoke a certificate
|
void |
setBaseUrl(String url)
Allows overriding the default URL used to communicate with Venafi
|
void |
setPolicy(String policyName,
PolicySpecification policySpecification)
Create/update a policy based on the policySpecification passed as argument.
|
void |
setVendorAndProductName(String vendorAndProductName)
Set the vendor and product name
|
void |
setZone(String zone)
Set the default zone
|
public CloudConnector(Cloud cloud)
public ConnectorType getType()
public void setBaseUrl(String url) throws VCertException
ConnectorsetBaseUrl in interface ConnectorVCertExceptionpublic void setZone(String zone)
Connectorpublic void setVendorAndProductName(String vendorAndProductName)
ConnectorsetVendorAndProductName in interface Connectorpublic String getVendorAndProductName()
getVendorAndProductName in interface Connectorpublic void ping()
throws VCertException
Connectorping in interface ConnectorVCertExceptionpublic void authenticate(Authentication auth) throws VCertException
Connectorauthenticate in interface ConnectorVCertExceptionpublic ZoneConfiguration readZoneConfiguration(String zone) throws VCertException
ConnectorreadZoneConfiguration in interface Connectorzone - ID (e.g. 2ebd4ec1-57f7-4994-8651-e396b286a3a8) or zone path (e.g.
"ProjectName\ZoneName")VCertExceptionpublic CertificateRequest generateRequest(ZoneConfiguration zoneConfig, CertificateRequest request) throws VCertException
ConnectorgenerateRequest in interface ConnectorVCertExceptionpublic String requestCertificate(CertificateRequest request, String zone) throws VCertException
ConnectorrequestCertificate in interface ConnectorVCertExceptionpublic String requestCertificate(CertificateRequest request, ZoneConfiguration zoneConfiguration) throws VCertException
ConnectorrequestCertificate in interface ConnectorVCertExceptionpublic PEMCollection retrieveCertificate(CertificateRequest request) throws VCertException
ConnectorretrieveCertificate in interface ConnectorVCertExceptionpublic String certificateAsPem(String requestId) throws VCertException
requestId - VCertExceptionpublic void revokeCertificate(RevocationRequest request) throws VCertException
ConnectorrevokeCertificate in interface ConnectorVCertExceptionpublic String renewCertificate(RenewalRequest request) throws VCertException
ConnectorrenewCertificate in interface ConnectorVCertExceptionpublic ImportResponse importCertificate(ImportRequest request) throws VCertException
ConnectorimportCertificate in interface ConnectorVCertExceptionpublic Policy readPolicyConfiguration(String zone) throws VCertException
ConnectorreadPolicyConfiguration in interface ConnectorVCertExceptionpublic void setPolicy(String policyName, PolicySpecification policySpecification) throws VCertException
ConnectorsetPolicy in interface ConnectorVCertExceptionpublic PolicySpecification getPolicy(String policyName) throws VCertException
ConnectorgetPolicy in interface ConnectorVCertExceptionpublic String requestSshCertificate(SshCertificateRequest sshCertificateRequest) throws VCertException
ConnectorrequestSshCertificate in interface ConnectorsshCertificateRequest - The SshCertificateRequest instance needed to do the request.
For more information about of which properties should be filled, please review the documentation of
SshCertificateRequest.retrieveSshCertificate(SshCertificateRequest) method.VCertExceptionpublic SshCertRetrieveDetails retrieveSshCertificate(SshCertificateRequest sshCertificateRequest) throws VCertException
ConnectorretrieveSshCertificate in interface ConnectorsshCertificateRequest - The SshCertificateRequest instance needed to do the request.
SshCertificateRequest.SshCertRetrieveDetails containing the Certificate Data of the created Certificate.VCertExceptionpublic SshConfig retrieveSshConfig(SshCaTemplateRequest sshCaTemplateRequest) throws VCertException
ConnectorSshConfig of the CA specified in the
SshCaTemplateRequest.retrieveSshConfig in interface ConnectorSshConfig.VCertExceptionCopyright © 2021. All rights reserved.