public class VCertTknClient extends Object implements TokenConnector
| Constructor and Description |
|---|
VCertTknClient(Config config) |
| 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)
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 VCertTknClient(Config config) throws VCertException
VCertExceptionpublic ConnectorType getType()
getType in interface TokenConnectorpublic void setBaseUrl(String url) throws VCertException
setBaseUrl in interface TokenConnectorUnsupportedOperationException - alwaysVCertExceptionpublic void setZone(String zone)
setZone in interface TokenConnectorpublic void setVendorAndProductName(String vendorAndProductName)
setVendorAndProductName in interface TokenConnectorpublic String getVendorAndProductName()
getVendorAndProductName in interface TokenConnectorpublic TokenInfo getAccessToken(Authentication auth) throws VCertException
TokenConnectorgetAccessToken in interface TokenConnectorauth - authentication infoVCertException - throws this exception when authentication info is null.public TokenInfo getAccessToken() throws VCertException
TokenConnectorAuthentication object passed earlier
with the Config object.getAccessToken in interface TokenConnectorVCertException - throws this exception when authentication info is null.public TokenInfo refreshAccessToken(String applicationId) throws VCertException
TokenConnectorrefreshAccessToken in interface TokenConnectorapplicationId - the application id.VCertExceptionpublic int revokeAccessToken()
throws VCertException
revokeAccessToken in interface TokenConnectorVCertExceptionpublic void ping()
throws VCertException
ping in interface TokenConnectorVCertExceptionpublic ZoneConfiguration readZoneConfiguration(String zone) throws VCertException
readZoneConfiguration in interface TokenConnectorzone - 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 TokenConnectorVCertExceptionpublic String requestCertificate(CertificateRequest request, String zone) throws VCertException
TokenConnectorrequestCertificate in interface TokenConnectorVCertExceptionpublic String requestCertificate(CertificateRequest request, ZoneConfiguration zoneConfiguration) throws VCertException
requestCertificate in interface TokenConnectorVCertExceptionpublic PEMCollection retrieveCertificate(CertificateRequest request) throws VCertException
retrieveCertificate in interface TokenConnectorVCertExceptionpublic void revokeCertificate(RevocationRequest request) throws VCertException
revokeCertificate in interface TokenConnectorVCertExceptionpublic String renewCertificate(RenewalRequest request) throws VCertException
renewCertificate in interface TokenConnectorVCertExceptionpublic ImportResponse importCertificate(ImportRequest request) throws VCertException
importCertificate in interface TokenConnectorVCertExceptionpublic Policy readPolicyConfiguration(String zone) throws VCertException
readPolicyConfiguration in interface TokenConnectorVCertExceptionpublic void setPolicy(String policyName, PolicySpecification policySpecification) throws VCertException
setPolicy in interface TokenConnectorVCertExceptionpublic PolicySpecification getPolicy(String policyName) throws VCertException
getPolicy in interface TokenConnectorVCertExceptionpublic String requestSshCertificate(SshCertificateRequest sshCertificateRequest) throws VCertException
TokenConnectorrequestSshCertificate in interface TokenConnectorsshCertificateRequest - 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
TokenConnectorretrieveSshCertificate in interface TokenConnectorsshCertificateRequest - 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
TokenConnectorSshConfig of the CA specified in the
SshCaTemplateRequest.retrieveSshConfig in interface TokenConnectorSshConfig.VCertExceptionCopyright © 2021. All rights reserved.