aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/asn1/Int.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/model/asn1/Int.java')
-rw-r--r--src/main/model/asn1/Int.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/model/asn1/Int.java b/src/main/model/asn1/Int.java
index 5b75a73..4eeeedf 100644
--- a/src/main/model/asn1/Int.java
+++ b/src/main/model/asn1/Int.java
@@ -25,9 +25,18 @@ public class Int extends ASN1Object {
* encoding. For more information, consult {@link ASN1Object}.
* REQUIRES: Consult {@link ASN1Object}.
*/
- public Int(Tag tag, Tag parentTag, long value) {
+ public Int(Tag tag, Tag parentTag, BigInteger value) {
super(tag, parentTag);
- this.value = BigInteger.valueOf(value);
+ this.value = value;
+ }
+
+ /**
+ * EFFECTS: Initiate the INTEGER object with the given tag and an optional context-specific tag number for explicit
+ * encoding. For more information, consult {@link ASN1Object}.
+ * REQUIRES: Consult {@link ASN1Object}.
+ */
+ public Int(Tag tag, Tag parentTag, long value) {
+ this(tag, parentTag, BigInteger.valueOf(value));
}
/**