|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Number | +--java.math.BigInteger | +--org.mozilla.jss.asn1.INTEGER
The ASN.1 type INTEGER
. This class extends BigInteger.
Inner Class Summary | |
static class |
INTEGER.Template
|
Field Summary | |
static Form |
FORM
|
static Tag |
TAG
|
Fields inherited from class java.math.BigInteger |
ONE,
ZERO |
Constructor Summary | |
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)
|
Method Summary | |
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. |
Methods inherited from class java.math.BigInteger |
abs,
add,
and,
andNot,
bitCount,
bitLength,
clearBit,
compareTo,
compareTo,
divide,
divideAndRemainder,
doubleValue,
equals,
flipBit,
floatValue,
gcd,
getLowestSetBit,
hashCode,
intValue,
isProbablePrime,
longValue,
max,
min,
mod,
modInverse,
modPow,
multiply,
negate,
not,
or,
pow,
remainder,
setBit,
shiftLeft,
shiftRight,
signum,
subtract,
testBit,
toByteArray,
toString,
toString,
valueOf,
xor |
Methods inherited from class java.lang.Number |
byteValue,
shortValue |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final Tag TAG
public static final Form FORM
Constructor Detail |
public INTEGER(java.lang.String s) throws java.lang.NumberFormatException
public INTEGER(java.lang.String s, int r) throws java.lang.NumberFormatException
public INTEGER(byte[] bval) throws java.lang.NumberFormatException
public INTEGER(int sign, byte[] mag) throws java.lang.NumberFormatException
public INTEGER(int numBits, java.util.Random rnd) throws java.lang.NumberFormatException
public INTEGER(int bitLength, int certainty, java.util.Random rnd)
public INTEGER(long val)
Method Detail |
public Tag getTag()
public void encode(java.io.OutputStream outStream) throws java.io.IOException
public void encode(Tag implicitTag, java.io.OutputStream outStream) throws java.io.IOException
public long getContentLength()
public byte[] encode() throws java.io.IOException
public static ASN1Template getTemplate()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |