diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2020-04-30 14:39:47 +0200 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2020-04-30 14:39:47 +0200 |
commit | a7515e3c057ef00ade3ae093b179c2787f07803b (patch) | |
tree | ec36c0520415879268db1ca0d57f132eca1d7876 /src/org/uic/header/DataBlockType.java | |
parent | Create README.md (diff) | |
download | UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.gz UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.bz2 UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.lz UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.xz UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.zst UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/org/uic/header/DataBlockType.java | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/src/org/uic/header/DataBlockType.java b/src/org/uic/header/DataBlockType.java new file mode 100644 index 0000000..ce4084f --- /dev/null +++ b/src/org/uic/header/DataBlockType.java @@ -0,0 +1,110 @@ +package org.uic.header;
+
+import net.gcdc.asn1.datatypes.Asn1Optional;
+import net.gcdc.asn1.datatypes.CharacterRestriction;
+import net.gcdc.asn1.datatypes.IntRange;
+import net.gcdc.asn1.datatypes.RestrictedString;
+import net.gcdc.asn1.datatypes.Sequence;
+
+/**
+ * The Class DataBlockType.
+ */
+@Sequence
+public class DataBlockType {
+
+
+ /** The data. */
+ public SequenceOfDataType data;
+
+ /**
+ * The signing algorithm
+ * Object Identifier of the Algorithm
+ * Number notation:
+ *
+ * e.g.:
+ * -- DSA SHA224 2.16.840.1.101.3.4.3.1
+ * -- DSA SHA248 2.16.840.1.101.3.4.3.2
+ * -- ECC 1.2.840.10045.3.1.7
+ *
+ *
+ */
+ @RestrictedString(CharacterRestriction.ObjectIdentifier)
+ @Asn1Optional public String signingAlg;
+
+ /** The key id. */
+ @IntRange(minValue=1,maxValue=1024)
+ @Asn1Optional public Long keyId;
+
+ /**
+ * Gets the data.
+ *
+ * @return the data
+ */
+ public SequenceOfDataType getData() {
+ return data;
+ }
+
+ /**
+ * Sets the data.
+ *
+ * @param data the new data
+ */
+ public void setData(SequenceOfDataType data) {
+ this.data = data;
+ }
+
+ /**
+ * Gets the signing algorithm
+ *
+ * Object Identifier of algorithm Algorithm
+ * Number notation:
+ *
+ * e.g.:
+ * -- DSA SHA224 2.16.840.1.101.3.4.3.1
+ * -- DSA SHA248 2.16.840.1.101.3.4.3.2
+ * -- ECC 1.2.840.10045.3.1.7
+ *
+ * @return the signing alg
+ */
+ public String getSigningAlg() {
+ return signingAlg;
+ }
+
+ /**
+ * Sets the signing algorithm
+ *
+ * Object Identifier of the Algorithm
+ * Number notation:
+ *
+ * e.g.:
+ * -- DSA SHA224 2.16.840.1.101.3.4.3.1
+ * -- DSA SHA248 2.16.840.1.101.3.4.3.2
+ * -- ECC 1.2.840.10045.3.1.7
+ *
+ * @param signingAlg the new signing algorithm
+ */
+ public void setSigningAlg(String signingAlgorithm) {
+ this.signingAlg = signingAlgorithm;
+ }
+
+ /**
+ * Gets the key id.
+ *
+ * @return the key id
+ */
+ public Long getKeyId() {
+ return keyId;
+ }
+
+ /**
+ * Sets the key id.
+ *
+ * @param keyId the new key id
+ */
+ public void setKeyId(Long keyId) {
+ this.keyId = keyId;
+ }
+
+
+
+}
|