This class represents an ASN.1 INTEGER built-in type. In this case,
the values can be greater than 64 bits in size. This class is used
in generated source code if the \ qualifier is specified
in a compiler configuration file.
Asn1BigInteger()
The default constructor sets the big integer value object reference
to null.
Asn1BigInteger(java.math.BigInteger value)
This constructor sets the big integer object reference to that of
the object passed in.
Asn1BigInteger(java.lang.String value)
This constructor creates a new big integer object and sets it to the
string value passed in.
Asn1BigInteger(java.lang.String value,
int radix)
This constructor creates a new big integer object and sets it to the
number string value passed in using the given radix.
Method Summary
void
decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method decodes an ASN.1 integer value including the UNIVERSAL
tag value and length if explicit tagging is specified.
void
decode(Asn1PerDecodeBuffer buffer)
This method decodes an unconstrained ASN.1 integer value using
the Packed Encoding Rules (PER).
static java.math.BigInteger
decodeValue(Asn1DecodeBuffer buffer,
int length)
This method decodes the contents of an ASN.1 integer value using
either the Basic Encoding Rules (BER) or the Packed Encoding Rules
(PER).
void
decodeXER(java.lang.String buffer,
java.lang.String attrs)
This method decodes an ASN.1 integer value using the XML
encoding rules (XER).
void
decodeXML(java.lang.String buffer,
java.lang.String attrs)
This method decodes an ASN.1 integer value using the XML
schema encoding rules.
int
encode(Asn1BerEncodeBuffer buffer,
boolean explicit)
This method encodes an ASN.1 integer value including the UNIVERSAL
tag value and length if explicit tagging is specified.
void
encode(Asn1BerOutputStream out,
boolean explicit)
This method encodes and writes to the stream an ASN.1 integer value
including the UNIVERSAL tag value and length if explicit tagging is
specified.
void
encode(Asn1PerEncodeBuffer buffer)
This method encodes an unconstrained ASN.1 integer value using
the Packed Encoding Rules (PER).
void
encode(Asn1PerOutputStream out)
This method encodes an unconstrained ASN.1 integer value using
the Packed Encoding Rules (PER).
void
encode(Asn1XerEncoder buffer,
java.lang.String elemName)
This method encodes an ASN.1 integer value using the XML
encoding rules (XER).
void
encode(Asn1XerEncoder buffer,
java.lang.String elemName,
java.lang.String attribute)
This method encodes an ASN.1 integer value using the XML
Encoding as specified in the XML schema standard.
The TAG constant describes the universal tag for
this data type (UNIVERSAL 2).
mbSignExtend
protected transient boolean mbSignExtend
value
public transient java.math.BigInteger value
The value member is public and is an instance of a Java
BigInteger object.
Constructor Detail
Asn1BigInteger
public Asn1BigInteger()
The default constructor sets the big integer value object reference
to null.
Asn1BigInteger
public Asn1BigInteger(java.math.BigInteger value)
This constructor sets the big integer object reference to that of
the object passed in.
Parameters:
value - BigInteger object reference
Asn1BigInteger
public Asn1BigInteger(java.lang.String value)
This constructor creates a new big integer object and sets it to the
string value passed in. String value may contain the prefix that describes
the radix: 0x - hexadecimal, 0o - octal, 0b - binary. The string value
without prefix assumes decimal value. The optional sign '-' may be specified
at the beginning of the string to specify the negative value.
Parameters:
value - String value
Asn1BigInteger
public Asn1BigInteger(java.lang.String value,
int radix)
This constructor creates a new big integer object and sets it to the
number string value passed in using the given radix.
Parameters:
value - String value
Method Detail
decodeValue
public static java.math.BigInteger decodeValue(Asn1DecodeBuffer buffer,
int length)
throws Asn1Exception,
java.io.IOException
This method decodes the contents of an ASN.1 integer value using
either the Basic Encoding Rules (BER) or the Packed Encoding Rules
(PER).
This method decodes an ASN.1 integer value including the UNIVERSAL
tag value and length if explicit tagging is specified. This
overloaded version uses the Basic Encoding Rules (BER).
This method encodes an ASN.1 integer value including the UNIVERSAL
tag value and length if explicit tagging is specified. This
overloaded version uses the Basic Encoding Rules (BER).
This method decodes an unconstrained ASN.1 integer value using
the Packed Encoding Rules (PER). The length and contents
components of the message are decoded. The decoded result is
stored in the public value member variable.
This method encodes an unconstrained ASN.1 integer value using
the Packed Encoding Rules (PER). The length and contents
components of the message are encoded.
This method encodes and writes to the stream an ASN.1 integer value
including the UNIVERSAL tag value and length if explicit tagging is
specified.
This overloaded version uses the Basic Encoding Rules (BER).
This method encodes an unconstrained ASN.1 integer value using
the Packed Encoding Rules (PER). The length and contents
components of the message are encoded.