org.digidoc4j.main.ExecutionOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digidoc4j Show documentation
Show all versions of digidoc4j Show documentation
DigiDoc4j is a Java library for digitally signing documents and creating digital signature containers
of signed documents
The newest version!
/* DigiDoc4J library
*
* This software is released under either the GNU Library General Public
* License (see LICENSE.LGPL).
*
* Note that the only valid version of the LGPL license as far as this
* project is concerned is the original GNU Library General Public License
* Version 2.1, February 1999
*/
package org.digidoc4j.main;
/**
* Wrapper of command line option. This holds argument name and the count of extra arguments
*
* Created by Janar Rahumeel (CGI Estonia)
*/
public enum ExecutionOption {
IN("in", 1),
DTS("dts", 1),
ADD("add", 2),
CERTIFICATE("cert", 1),
EXTRACT("extract", 2),
PKCS11("pkcs11", 2),
PKCS12("pkcs12", 2),
SIGNATURE("sig", 1),
DETACHED_XADES("xades", 0),
DIGEST_FILE("digFile" , 3),
XADES_OUTPUT_PATH("sigOutputPath" , 1),
XADES_INPUT_PATH("sigInputPath" , 1);
private String name;
private int count;
ExecutionOption(String name, int count) {
this.name = name;
this.count = count;
}
/*
* ACCESSORS
*/
public String getName() {
return name;
}
public int getCount() {
return count;
}
}