
org.openas2.app.cert.ClearCertsCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
package org.openas2.app.cert;
import org.openas2.OpenAS2Exception;
import org.openas2.cert.AliasedCertificateFactory;
import org.openas2.cmd.CommandResult;
public class ClearCertsCommand extends AliasedCertCommand {
public String getDefaultDescription() {
return "Deletes all certificates from the store";
}
public String getDefaultName() {
return "clear";
}
public String getDefaultUsage() {
return "clear";
}
public CommandResult execute(AliasedCertificateFactory certFx,
Object[] params) throws OpenAS2Exception {
synchronized (certFx) {
certFx.clearCertificates();
return new CommandResult(CommandResult.TYPE_OK, "cleared");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy