01: package org.bouncycastle.sasn1;
02:
03: import java.io.IOException;
04: import java.math.BigInteger;
05:
06: /**
07: * @deprecated use corresponsding classes in org.bouncycastle.asn1.
08: */
09: public class Asn1Integer extends DerObject {
10: private BigInteger _value;
11:
12: protected Asn1Integer(int baseTag, byte[] data) throws IOException {
13: super (baseTag, BerTag.INTEGER, data);
14:
15: this ._value = new BigInteger(data);
16: }
17:
18: public Asn1Integer(long value) {
19: this (BigInteger.valueOf(value));
20: }
21:
22: public Asn1Integer(BigInteger value) {
23: super (BerTagClass.UNIVERSAL, BerTag.INTEGER, value
24: .toByteArray());
25:
26: this ._value = value;
27: }
28:
29: public BigInteger getValue() {
30: return _value;
31: }
32: }
|