Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 41bde09

Browse files
Merge pull request #117 from Venafi/Cloud-ping_issue
Fix VCertClient.ping() for Cloud is not working. The Ping capability is not longer provided by VaaS so this ping method has been deprecated
2 parents 8981df6 + 20fc0ce commit 41bde09

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

src/main/java/com/venafi/vcert/sdk/connectors/cloud/Cloud.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ Response retrieveCertificate(@Param("id") String id, @Param("apiKey") String api
6666
@RequestLine("GET /outagedetection/v1/certificates/{id}")
6767
CertificateDetails certificateDetails(@Param("id") String id, @Param("apiKey") String apiKey);
6868

69-
@RequestLine("GET ping")
70-
@Headers("x-venafi-api-key: {apiKey}")
71-
Response ping(@Param("apiKey") String apiKey);
72-
7369
@RequestLine("GET /v1/certificateauthorities/{CA}/accounts")
7470
@Headers("tppl-api-key: {apiKey}")
7571
CAAccountsList getCAAccounts(@Param("CA") String caName, @Param("apiKey") String apiKey);

src/main/java/com/venafi/vcert/sdk/connectors/cloud/CloudConnector.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,12 @@ public String getVendorAndProductName() {
104104
return vendorAndProductName;
105105
}
106106

107+
/**
108+
* @deprecated The ping capability is not longer supported by VaaS.
109+
*/
107110
@Override
108-
public void ping() throws VCertException {
109-
Response response = doPing();
110-
if (response.status() != 200) {
111-
throw new CloudPingException( response.status(), response.reason());
112-
}
113-
}
114-
115-
private Response doPing() {
116-
return cloud.ping(credentials.apiKey());
117-
}
111+
@Deprecated
112+
public void ping() throws VCertException {}
118113

119114
/**
120115
* {@inheritDoc}

0 commit comments

Comments
 (0)