public interface TokenConnector
| Modifier and Type | Method and Description |
|---|---|
CertificateRequest |
generateRequest(ZoneConfiguration config,
CertificateRequest request)
VedAuth method.
|
TokenInfo |
getAccessToken()
returns a new access token.
|
TokenInfo |
getAccessToken(Authentication auth)
returns a new access token.
|
PolicySpecification |
getPolicy(String policyName)
Returns the policySpecification from the policy which matches with the policyName argument.
|
ConnectorType |
getType() |
String |
getVendorAndProductName() |
ImportResponse |
importCertificate(ImportRequest request)
VedAuth method.
|
void |
ping()
VedAuth method.
|
Policy |
readPolicyConfiguration(String zone)
VedAuth method.
|
ZoneConfiguration |
readZoneConfiguration(String zone)
VedAuth method.
|
TokenInfo |
refreshAccessToken(String applicationId)
this is for refreshing a token.
|
String |
renewCertificate(RenewalRequest request)
VedAuth method.
|
String |
requestCertificate(CertificateRequest request,
String zone)
VedAuth method.
|
String |
requestCertificate(CertificateRequest request,
ZoneConfiguration zoneConfiguration)
VedAuth method.
|
String |
requestSshCertificate(SshCertificateRequest sshCertificateRequest)
Request a new SSH Certificate.
|
PEMCollection |
retrieveCertificate(CertificateRequest request)
VedAuth method.
|
SshCertRetrieveDetails |
retrieveSshCertificate(SshCertificateRequest sshCertificateRequest)
Retrieve a requested SSH Certificate
|
SshConfig |
retrieveSshConfig(SshCaTemplateRequest sshCaTemplateRequest)
Retrieve the
SshConfig of the CA specified in the
SshCaTemplateRequest. |
int |
revokeAccessToken() |
void |
revokeCertificate(RevocationRequest request)
VedAuth method.
|
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()
TokenInfo getAccessToken(Authentication auth) throws VCertException
auth - authentication infoVCertException - throws this exception when authentication info is null.TokenInfo getAccessToken() throws VCertException
Authentication object passed earlier
with the Config object.VCertException - throws this exception when authentication info is null.TokenInfo refreshAccessToken(String applicationId) throws VCertException
applicationId - the application id.VCertExceptionint revokeAccessToken()
throws VCertException
VCertExceptionvoid ping() throws VCertException
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, UnsupportedOperationException
request - zoneConfiguration - VCertExceptionUnsupportedOperationExceptionString requestCertificate(CertificateRequest request, String zone) throws VCertException, UnsupportedOperationException
request - zone - VCertExceptionUnsupportedOperationExceptionPEMCollection 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.