use of com.venafi.vcert.sdk.connectors.tpp.endpoint.ssh.TppSshCertRequestResponse in project vcert-java by Venafi.
the class AbstractTppConnector method requestTppSshCertificate.
protected TppSshCertRequestResponse requestTppSshCertificate(SshCertificateRequest sshCertificateRequest) throws VCertException {
TppSshCertRequest tppSshCertRequest = TppConnectorUtils.convertToTppSshCertReq(sshCertificateRequest);
TppSshCertRequestResponse requestResponse;
try {
requestResponse = tppAPI.requestSshCertificate(tppSshCertRequest);
} catch (Exception e) {
throw new VCertException(e);
}
if (!requestResponse.response().success())
throw new RequestCertificateException(requestResponse.response().errorCode(), requestResponse.response().errorMessage());
return requestResponse;
}
Aggregations