1b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampackage org.bouncycastle.asn1;
2b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
3b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallamimport java.math.BigInteger;
4b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
55db505e1f6a68c8d5dfdb0fed0b8607dea7bed96Kenny Root/**
6d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root * @deprecated  Use ASN1Integer instead of this,
75db505e1f6a68c8d5dfdb0fed0b8607dea7bed96Kenny Root */
8b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampublic class DERInteger
9d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root    extends ASN1Integer
10b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam{
11b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    /**
12d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root     * Constructor from a byte array containing a signed representation of the number.
13b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam     *
14d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root     * @param bytes a byte array containing the signed number.A copy is made of the byte array.
155db505e1f6a68c8d5dfdb0fed0b8607dea7bed96Kenny Root     */
16d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root    public DERInteger(byte[] bytes)
17b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    {
18d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root        super(bytes, true);
19b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    }
20b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
21d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root    public DERInteger(BigInteger value)
22b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    {
23d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root        super(value);
24b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    }
25b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
26d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root    public DERInteger(long value)
27b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    {
28d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root        super(value);
29b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    }
30b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam}
31