Search in sources :

Example 1 with X509Certprofile

use of org.xipki.ca.api.profile.x509.X509Certprofile in project xipki by xipki.

the class CaManagerImpl method createCertprofile.

// method createX509CrlSigner
IdentifiedX509Certprofile createCertprofile(CertprofileEntry dbEntry) throws CaMgmtException {
    ParamUtil.requireNonNull("dbEntry", dbEntry);
    try {
        X509Certprofile profile = x509CertProfileFactoryRegister.newCertprofile(dbEntry.getType());
        IdentifiedX509Certprofile ret = new IdentifiedX509Certprofile(dbEntry, profile);
        ret.setEnvParameterResolver(envParameterResolver);
        ret.validate();
        return ret;
    } catch (ObjectCreationException | CertprofileException ex) {
        String msg = "could not initialize Certprofile " + dbEntry.getIdent();
        LogUtil.error(LOG, ex, msg);
        throw new CaMgmtException(msg, ex);
    }
}
Also used : CaMgmtException(org.xipki.ca.server.mgmt.api.CaMgmtException) X509Certprofile(org.xipki.ca.api.profile.x509.X509Certprofile) ObjectCreationException(org.xipki.common.ObjectCreationException) CertprofileException(org.xipki.ca.api.profile.CertprofileException)

Aggregations

CertprofileException (org.xipki.ca.api.profile.CertprofileException)1 X509Certprofile (org.xipki.ca.api.profile.x509.X509Certprofile)1 CaMgmtException (org.xipki.ca.server.mgmt.api.CaMgmtException)1 ObjectCreationException (org.xipki.common.ObjectCreationException)1