public interface Connector
| 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)
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
|
ConnectorType getType()
void setBaseUrl(String url) throws VCertException
url - VCertExceptionvoid setZone(String zone)
zone - void setVendorAndProductName(String vendorAndProductName)
vendorAndProductName - String getVendorAndProductName()
void ping() throws VCertException
VCertExceptionvoid authenticate(Authentication auth) throws VCertException
auth - VCertExceptionZoneConfiguration readZoneConfiguration(String zone) throws VCertException
zone - ID (e.g. 2ebd4ec1-57f7-4994-8651-e396b286a3a8) or zone path (e.g.
"ProjectName\ZoneName")VCertExceptionCertificateRequest generateRequest(ZoneConfiguration config, CertificateRequest request) throws VCertException
config - VCertExceptionString requestCertificate(CertificateRequest request, ZoneConfiguration zoneConfiguration) throws VCertException
request - zoneConfiguration - VCertExceptionString requestCertificate(CertificateRequest request, String zone) throws VCertException
request - zone - VCertExceptionPEMCollection retrieveCertificate(CertificateRequest request) throws VCertException
request - VCertExceptionvoid revokeCertificate(RevocationRequest request) throws VCertException
request - VCertExceptionString renewCertificate(RenewalRequest request) throws VCertException
request - VCertExceptionImportResponse importCertificate(ImportRequest request) throws VCertException
request - VCertExceptionPolicy readPolicyConfiguration(String zone) throws VCertException
zone - VCertExceptionvoid setPolicy(String policyName, PolicySpecification policySpecification) throws VCertException
policyName - policySpecification - VCertExceptionPolicySpecification getPolicy(String policyName) throws VCertException
policyName - VCertExceptionString requestSshCertificate(SshCertificateRequest sshCertificateRequest) throws VCertException
sshCertificateRequest - 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.VCertExceptionSshCertRetrieveDetails retrieveSshCertificate(SshCertificateRequest sshCertificateRequest) throws VCertException
sshCertificateRequest - The SshCertificateRequest instance needed to do the request.
SshCertificateRequest.SshCertRetrieveDetails containing the Certificate Data of the created Certificate.VCertExceptionSshConfig retrieveSshConfig(SshCaTemplateRequest sshCaTemplateRequest) throws VCertException
SshConfig of the CA specified in the
SshCaTemplateRequest.sshCaTemplateRequest - SshConfig.VCertExceptionCopyright © 2021. All rights reserved.