org.mozilla.jss.asn1
Class INTEGER
BigInteger
org.mozilla.jss.asn1.INTEGER
- ASN1Value
public class INTEGER
extends BigInteger
The ASN.1 type INTEGER
. This class extends BigInteger.
byte[] | encode()
|
void | encode(OutputStream outStream) - Write this value's DER encoding to an output stream using
its own base tag.
|
void | encode(Tag implicitTag, 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(args[] ) - Tests the DER encoding and decoding of the INTEGER class.
|
FORM
public static final Form FORM
TAG
public static final Tag TAG
INTEGER
public INTEGER(BigInteger bi)
INTEGER
public INTEGER(String s)
throws NumberFormatException
INTEGER
public INTEGER(String s,
int r)
throws NumberFormatException
INTEGER
public INTEGER(byte[] bval)
throws NumberFormatException
INTEGER
public INTEGER(int numBits,
Random rnd)
throws NumberFormatException
INTEGER
public INTEGER(int sign,
byte[] mag)
throws NumberFormatException
INTEGER
public INTEGER(int bitLength,
int certainty,
Random rnd)
INTEGER
public INTEGER(long val)
encode
public byte[] encode()
throws IOException
encode
public void encode(OutputStream outStream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream outStream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getContentLength
public long getContentLength()
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value
main
public static void main(args[] )
Tests the DER encoding and decoding of the INTEGER class.