use of com.axelor.apps.bankpayment.ebics.service.EbicsCertificateService in project axelor-open-suite by axelor.
the class CertificateManager method updateCertificate.
private EbicsCertificate updateCertificate(X509Certificate certificate, EbicsCertificate cert, byte[] privateKey, String type) throws CertificateEncodingException, IOException {
if (cert == null) {
cert = new EbicsCertificate();
cert.setTypeSelect(type);
}
EbicsCertificateService certificateService = Beans.get(EbicsCertificateService.class);
cert = certificateService.updateCertificate(certificate, cert, true);
cert.setPrivateKey(privateKey);
return cert;
}
Aggregations