/** * */ package at.gv.egiz.pdfas.api.commons; /** * Contains commonly used constants. * * @author wprinz */ public final class Constants { /** * Hidden default constructor. */ private Constants() { // empty } /** * A binary signature. */ public static String SIGNATURE_TYPE_BINARY = "binary"; /** * A textual signature. */ public static String SIGNATURE_TYPE_TEXTUAL = "textual"; /** * A "detached" textual signature. * *

* The document text is signed, but instead of returning the pdf with the signature block, * the sign result XML of the connector is returned. *

*/ public static String SIGNATURE_TYPE_DETACHEDTEXTUAL = "detachedtextual"; /** * The signature device moa. */ public static String SIGNATURE_DEVICE_MOA = "moa"; /** * The signature device bku. */ public static String SIGNATURE_DEVICE_BKU = "bku"; /** * Only binary signatures are verified. */ public static String VERIFY_MODE_BINARY_ONLY = "binaryOnly"; /** * Binary and textual signatures are verified with time optimization. * *

* This mode of operation tries to minimize the numbers of text extractions, * which are very time intensive, at the cost of some rare cases, in which some * signatures may not be found. *

*/ public static String VERIFY_MODE_SEMI_CONSERVATIVE = "semiConservative"; /** * Binary and textual signatures are verified. */ public static String VERIFY_MODE_FULL_CONSERVATIVE = "fullConservative"; /** * All signatures are verified. */ public static int VERIFY_ALL = -1; /** * The system property that may be used to declare the pdf-as configuration folder. */ public final static String CONFIG_DIR_SYSTEM_PROPERTY = "pdf-as.work-dir"; /** * The zip file containing the default configuration. */ public final static String DEFAULT_CONFIGURATION_ZIP_RESOURCE = "DefaultConfiguration.zip"; /** * The configuration folder for pdf-as within the user's home folder. */ public static final String USERHOME_CONFIG_FOLDER = "PDF-AS"; /** * The name of the directory, where temporary files are stored. */ public final static String TEMP_DIR_NAME = "pdfastmp"; }