summaryrefslogtreecommitdiffstats
path: root/src/org/uic/barcode/dynamicFrame/Constants.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-07-28 17:57:25 +0200
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-07-28 17:57:25 +0200
commitb17ce13cc31abd088088bf8ab26cc924a6a36585 (patch)
tree5588e1ccc212213097500f4cb43fa0e3e68e323b /src/org/uic/barcode/dynamicFrame/Constants.java
parentDraft of the new DOSIPAS included (diff)
downloadUIC-barcode-b17ce13cc31abd088088bf8ab26cc924a6a36585.tar
UIC-barcode-b17ce13cc31abd088088bf8ab26cc924a6a36585.tar.gz
UIC-barcode-b17ce13cc31abd088088bf8ab26cc924a6a36585.tar.bz2
UIC-barcode-b17ce13cc31abd088088bf8ab26cc924a6a36585.tar.lz
UIC-barcode-b17ce13cc31abd088088bf8ab26cc924a6a36585.tar.xz
UIC-barcode-b17ce13cc31abd088088bf8ab26cc924a6a36585.tar.zst
UIC-barcode-b17ce13cc31abd088088bf8ab26cc924a6a36585.zip
Diffstat (limited to 'src/org/uic/barcode/dynamicFrame/Constants.java')
-rw-r--r--src/org/uic/barcode/dynamicFrame/Constants.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/org/uic/barcode/dynamicFrame/Constants.java b/src/org/uic/barcode/dynamicFrame/Constants.java
new file mode 100644
index 0000000..98b62aa
--- /dev/null
+++ b/src/org/uic/barcode/dynamicFrame/Constants.java
@@ -0,0 +1,38 @@
+package org.uic.barcode.dynamicFrame;
+
+public class Constants {
+
+ /*
+ * Object Identifier for recommended signature algorithms
+ *
+ */
+ public static String KG_EC_256 = "1.2.840.10045.3.1.7";
+ public static String KG_EC = "1.2.840.10045.2.1";
+ public static String ECDSA_SHA256 = "1.2.840.10045.4.3.2";
+
+ public static String DSA_SHA1 = "1.2.840.10040.4.3";
+ public static String DSA_SHA224 = "2.16.840.1.101.3.4.3.1";
+ public static String DSA_SHA248 = "2.16.840.1.101.3.4.3.2";
+
+ public static String DATA_TYPE_FCB_VERSION_1 = "FCB1";
+ public static String DATA_TYPE_FCB_VERSION_2 = "FCB2";
+
+ public static String DYNAMIC_BARCODE_FORMAT_DEFAULT = "U1";
+
+ public static int LEVEL2_VALIDATION_OK = 0;
+ public static int LEVEL2_VALIDATION_NO_KEY = 1;
+ public static int LEVEL2_VALIDATION_NO_SIGNATURE = 2;
+ public static int LEVEL2_VALIDATION_FRAUD = 3;
+ public static int LEVEL2_VALIDATION_SIG_ALG_NOT_IMPLEMENTED = 4;
+ public static int LEVEL2_VALIDATION_KEY_ALG_NOT_IMPLEMENTED = 5;
+ public static int LEVEL2_VALIDATION_ENCODING_ERROR = 6;
+
+ public static int LEVEL1_VALIDATION_OK = 0;
+ public static int LEVEL1_VALIDATION_NO_KEY = 1;
+ public static int LEVEL1_VALIDATION_NO_SIGNATURE = 2;
+ public static int LEVEL1_VALIDATION_FRAUD = 3;
+ public static int LEVEL1_VALIDATION_SIG_ALG_NOT_IMPLEMENTED = 4;
+ public static int LEVEL1_VALIDATION_KEY_ALG_NOT_IMPLEMENTED = 5;
+ public static int LEVEL1_VALIDATION_ENCODING_ERROR = 6;
+
+}