| Constructor and Description |
|---|
VCertClient(Config config) |
| 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
|
CertificateRequest |
generateRequest(ZoneConfiguration config,
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)
Method not implemented yet.
|
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 VCertClient(Config config) throws VCertException
VCertExceptionpublic ConnectorType getType()
public void setBaseUrl(String url) throws VCertException
setBaseUrl in interface ConnectorUnsupportedOperationException - alwaysVCertExceptionpublic void setZone(String zone)
public void setVendorAndProductName(String vendorAndProductName)
setVendorAndProductName in interface Connectorpublic String getVendorAndProductName()
getVendorAndProductName in interface Connectorpublic void ping()
throws VCertException
ping in interface ConnectorVCertExceptionpublic void authenticate(Authentication auth) throws VCertException
authenticate in interface ConnectorVCertExceptionpublic ZoneConfiguration readZoneConfiguration(String zone) throws VCertException
readZoneConfiguration in interface Connectorzone - ID (e.g. 2ebd4ec1-57f7-4994-8651-e396b286a3a8) or zone path (e.g.
"ProjectName\ZoneName")VCertExceptionpublic CertificateRequest generateRequest(ZoneConfiguration config, CertificateRequest request) throws VCertException
generateRequest in interface ConnectorVCertExceptionpublic String requestCertificate(CertificateRequest request, String zone) throws VCertException
ConnectorrequestCertificate in interface ConnectorVCertExceptionpublic String requestCertificate(CertificateRequest request, ZoneConfiguration zoneConfiguration) throws VCertException
requestCertificate in interface ConnectorVCertExceptionpublic PEMCollection retrieveCertificate(CertificateRequest request) throws VCertException
retrieveCertificate in interface ConnectorVCertExceptionpublic void revokeCertificate(RevocationRequest request) throws VCertException
revokeCertificate in interface ConnectorVCertExceptionpublic String renewCertificate(RenewalRequest request) throws VCertException
renewCertificate in interface ConnectorVCertExceptionpublic ImportResponse importCertificate(ImportRequest request) throws VCertException
importCertificate in interface ConnectorVCertExceptionpublic Policy readPolicyConfiguration(String zone) throws VCertException
readPolicyConfiguration in interface ConnectorVCertExceptionpublic void setPolicy(String policyName, PolicySpecification policySpecification) throws VCertException
setPolicy in interface ConnectorVCertExceptionpublic PolicySpecification getPolicy(String policyName) throws VCertException
getPolicy 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.