Search in sources :

Example 1 with EbicsCertificateService

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;
}
Also used : EbicsCertificate(com.axelor.apps.bankpayment.db.EbicsCertificate) EbicsCertificateService(com.axelor.apps.bankpayment.ebics.service.EbicsCertificateService)

Aggregations

EbicsCertificate (com.axelor.apps.bankpayment.db.EbicsCertificate)1 EbicsCertificateService (com.axelor.apps.bankpayment.ebics.service.EbicsCertificateService)1