Search in sources :

Example 1 with CaConf

use of org.xipki.ca.server.mgmt.api.conf.CaConf in project xipki by xipki.

the class LoadConfCmd method execute0.

@Override
protected Object execute0() throws Exception {
    CaConf caConf = new CaConf(confFile, securityFactory);
    String msg = "configuration " + confFile;
    try {
        caManager.loadConf(caConf);
        println("loaded " + msg);
        return null;
    } catch (CaMgmtException ex) {
        throw new CmdFailure("could not load " + msg + ", error: " + ex.getMessage(), ex);
    }
}
Also used : CaMgmtException(org.xipki.ca.server.mgmt.api.CaMgmtException) CmdFailure(org.xipki.console.karaf.CmdFailure) CaConf(org.xipki.ca.server.mgmt.api.conf.CaConf)

Aggregations

CaMgmtException (org.xipki.ca.server.mgmt.api.CaMgmtException)1 CaConf (org.xipki.ca.server.mgmt.api.conf.CaConf)1 CmdFailure (org.xipki.console.karaf.CmdFailure)1