use of org.xipki.ca.server.mgmt.api.CaMgmtException in project xipki by xipki.
the class CaPublisherAddCmd method execute0.
@Override
protected Object execute0() throws Exception {
for (String publisherName : publisherNames) {
String msg = "publisher " + publisherName + " to CA " + caName;
try {
caManager.addPublisherToCa(publisherName, caName);
println("added " + msg);
} catch (CaMgmtException ex) {
throw new CmdFailure("could not add " + msg + ", error: " + ex.getMessage(), ex);
}
}
return null;
}
use of org.xipki.ca.server.mgmt.api.CaMgmtException in project xipki by xipki.
the class CaPublisherRemoveCmd method execute0.
@Override
protected Object execute0() throws Exception {
for (String publisherName : publisherNames) {
String msg = "publisher " + publisherName + " from CA " + caName;
try {
caManager.removePublisherFromCa(publisherName, caName);
println("removed " + msg);
} catch (CaMgmtException ex) {
throw new CmdFailure("could not remove " + msg + ", error: " + ex.getMessage(), ex);
}
}
return null;
}
use of org.xipki.ca.server.mgmt.api.CaMgmtException in project xipki by xipki.
the class CrlSignerUpdateCmd method execute0.
// method getCrlSignerChangeEntry
@Override
protected Object execute0() throws Exception {
String msg = "CRL signer " + name;
try {
caManager.changeCrlSigner(getCrlSignerChangeEntry());
println("updated " + msg);
return null;
} catch (CaMgmtException ex) {
throw new CmdFailure("could not update " + msg + ", error: " + ex.getMessage(), ex);
}
}
use of org.xipki.ca.server.mgmt.api.CaMgmtException in project xipki by xipki.
the class EnvUpdateCmd method execute0.
@Override
protected Object execute0() throws Exception {
String msg = "the environment " + name + "=" + getRealString(value);
try {
caManager.changeEnvParam(name, value);
println("updated " + msg);
return null;
} catch (CaMgmtException ex) {
throw new CmdFailure("could not update " + msg + ", error: " + ex.getMessage(), ex);
}
}
use of org.xipki.ca.server.mgmt.api.CaMgmtException in project xipki by xipki.
the class UnrevokeCertCmd method execute0.
@Override
protected Object execute0() throws Exception {
BigInteger serialNo = getSerialNumber();
String msg = "certificate (serial number = 0x" + serialNo.toString(16) + ")";
try {
caManager.unrevokeCertificate(caName, serialNo);
println("unrevoked " + msg);
return null;
} catch (CaMgmtException ex) {
throw new CmdFailure("could not unrevoke " + msg + ", error: " + ex.getMessage(), ex);
}
}
Aggregations