From ea60aae139c666c610c1af5cfd0b616d3f4a535c Mon Sep 17 00:00:00 2001 From: tknall Date: Tue, 25 Nov 2008 12:48:15 +0000 Subject: Preparation for multilingual support for web application. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@312 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/gv/egiz/pdfas/api/commons/Constants.java | 32 +++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'src/main/java/at/gv/egiz/pdfas/api/commons/Constants.java') diff --git a/src/main/java/at/gv/egiz/pdfas/api/commons/Constants.java b/src/main/java/at/gv/egiz/pdfas/api/commons/Constants.java index a7bc776..19f7613 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/commons/Constants.java +++ b/src/main/java/at/gv/egiz/pdfas/api/commons/Constants.java @@ -21,13 +21,15 @@ public final class Constants /** * A binary signature. + * This value should not be modified due to external dependencies! */ - public static String SIGNATURE_TYPE_BINARY = "binary"; + public static final String SIGNATURE_TYPE_BINARY = "binary"; /** * A textual signature. + * This value should not be modified due to external dependencies! */ - public static String SIGNATURE_TYPE_TEXTUAL = "textual"; + public static final String SIGNATURE_TYPE_TEXTUAL = "textual"; /** * A "detached" textual signature. @@ -37,32 +39,36 @@ public final class Constants * the sign result XML of the connector is returned. *

*/ - public static String SIGNATURE_TYPE_DETACHEDTEXTUAL = "detachedtextual"; + public static final String SIGNATURE_TYPE_DETACHEDTEXTUAL = "detachedtextual"; /** * The signature device moa. + * This value should not be modified due to external dependencies! */ - public static String SIGNATURE_DEVICE_MOA = "moa"; + public static final String SIGNATURE_DEVICE_MOA = "moa"; /** * The signature device bku. + * This value should not be modified due to external dependencies! */ - public static String SIGNATURE_DEVICE_BKU = "bku"; + public static final String SIGNATURE_DEVICE_BKU = "bku"; /** * The signature device a1. + * This value should not be modified due to external dependencies! */ - public static String SIGNATURE_DEVICE_A1 = "a1"; + public static final String SIGNATURE_DEVICE_A1 = "a1"; /** * The signature device MOCCA (online bku). + * This value should not be modified due to external dependencies! */ public static final String SIGNATURE_DEVICE_MOC = "moc"; /** * Only binary signatures are verified. */ - public static String VERIFY_MODE_BINARY_ONLY = "binaryOnly"; + public static final String VERIFY_MODE_BINARY_ONLY = "binaryOnly"; /** * Binary and textual signatures are verified with time optimization. @@ -73,27 +79,27 @@ public final class Constants * signatures may not be found. *

*/ - public static String VERIFY_MODE_SEMI_CONSERVATIVE = "semiConservative"; + public static final String VERIFY_MODE_SEMI_CONSERVATIVE = "semiConservative"; /** * Binary and textual signatures are verified. */ - public static String VERIFY_MODE_FULL_CONSERVATIVE = "fullConservative"; + public static final String VERIFY_MODE_FULL_CONSERVATIVE = "fullConservative"; /** * All signatures are verified. */ - public static int VERIFY_ALL = -1; + public static final 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"; + public static final 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"; + public static final String DEFAULT_CONFIGURATION_ZIP_RESOURCE = "DefaultConfiguration.zip"; /** * The configuration folder for pdf-as within the user's home folder. @@ -103,7 +109,7 @@ public final class Constants /** * The name of the directory, where temporary files are stored. */ - public final static String TEMP_DIR_NAME = "pdfastmp"; + public static final String TEMP_DIR_NAME = "pdfastmp"; } -- cgit v1.2.3