org.mozilla.jss.asn1

Class INTEGER

public class INTEGER extends BigInteger implements ASN1Value

The ASN.1 type INTEGER. This class extends BigInteger.
Nested Class Summary
static classINTEGER.Template
Field Summary
static FormFORM
static TagTAG
Constructor Summary
INTEGER(String s)
INTEGER(String s, int r)
INTEGER(byte[] bval)
INTEGER(int sign, byte[] mag)
INTEGER(int numBits, Random rnd)
INTEGER(int bitLength, int certainty, Random rnd)
INTEGER(long val)
INTEGER(BigInteger bi)
Method Summary
voidencode(OutputStream outStream)
voidencode(Tag implicitTag, OutputStream outStream)
byte[]encode()
longgetContentLength()
TaggetTag()
static ASN1TemplategetTemplate()
static voidmain(String[] args)
Tests the DER encoding and decoding of the INTEGER class.

Field Detail

FORM

public static final Form FORM

TAG

public static final Tag TAG

Constructor Detail

INTEGER

public INTEGER(String s)

INTEGER

public INTEGER(String s, int r)

INTEGER

public INTEGER(byte[] bval)

INTEGER

public INTEGER(int sign, byte[] mag)

INTEGER

public INTEGER(int numBits, Random rnd)

INTEGER

public INTEGER(int bitLength, int certainty, Random rnd)

INTEGER

public INTEGER(long val)

INTEGER

public INTEGER(BigInteger bi)

Method Detail

encode

public void encode(OutputStream outStream)

encode

public void encode(Tag implicitTag, OutputStream outStream)

encode

public byte[] encode()

getContentLength

public long getContentLength()

getTag

public Tag getTag()

getTemplate

public static ASN1Template getTemplate()

main

public static void main(String[] args)
Tests the DER encoding and decoding of the INTEGER class.