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);
}
}
Aggregations