public class INTEGER extends java.math.BigInteger implements ASN1Value
INTEGER. This class extends BigInteger.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
INTEGER.Template  | 
| Constructor and Description | 
|---|
INTEGER(java.math.BigInteger bi)  | 
INTEGER(byte[] bval)  | 
INTEGER(int sign,
       byte[] mag)  | 
INTEGER(int bitLength,
       int certainty,
       java.util.Random rnd)  | 
INTEGER(int numBits,
       java.util.Random rnd)  | 
INTEGER(long val)  | 
INTEGER(java.lang.String s)  | 
INTEGER(java.lang.String s,
       int r)  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
encode()  | 
void | 
encode(java.io.OutputStream outStream)
Write this value's DER encoding to an output stream using
        its own base tag. 
 | 
void | 
encode(Tag implicitTag,
      java.io.OutputStream outStream)
Write this value's DER encoding to an output stream using
 an implicit tag. 
 | 
long | 
getContentLength()  | 
Tag | 
getTag()
Returns the base tag for this type, not counting any tags
 that may be imposed on it by its context. 
 | 
static ASN1Template | 
getTemplate()  | 
static void | 
main(java.lang.String[] args)
Tests the DER encoding and decoding of the INTEGER class. 
 | 
abs, add, and, andNot, bitCount, bitLength, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, isProbablePrime, longValue, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, signum, subtract, testBit, toByteArray, toString, toString, valueOf, xorpublic INTEGER(java.lang.String s)
        throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic INTEGER(java.lang.String s,
       int r)
        throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic INTEGER(byte[] bval)
        throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic INTEGER(int sign,
       byte[] mag)
        throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic INTEGER(int numBits,
       java.util.Random rnd)
        throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic INTEGER(int bitLength,
       int certainty,
       java.util.Random rnd)
public INTEGER(long val)
public INTEGER(java.math.BigInteger bi)
public Tag getTag()
ASN1Valuepublic void encode(java.io.OutputStream outStream)
            throws java.io.IOException
ASN1Valuepublic void encode(Tag implicitTag, java.io.OutputStream outStream) throws java.io.IOException
ASN1Valuepublic long getContentLength()
public byte[] encode()
              throws java.io.IOException
java.io.IOExceptionpublic static ASN1Template getTemplate()
public static void main(java.lang.String[] args)