|
Oracle Security Developer Tools Crypto Java API Reference 10g Release 2 (10.1.2.0.2) B15565-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.asn1.ASN1Integer
The universal ASN.1 integer type.
The input may be any valid BER encoding of an ASN.1 integer. The output is always a DER encoding.
Constructor Summary | |
ASN1Integer(java.math.BigInteger value) |
|
ASN1Integer(java.io.InputStream is) |
|
ASN1Integer(long value) |
Method Summary | |
boolean |
equals(int n) Returns true if and only if the integer represented by this ASN.1 object is equal to the given value. |
ASN1Header |
getHeader() |
java.math.BigInteger |
getValue() |
void |
input(java.io.InputStream is) Inputs this object from the specified input stream. |
static java.math.BigInteger |
inputValue(java.io.InputStream is) |
int |
intValue() |
int |
length() Length of this object's encoding. |
long |
longValue() |
void |
output(java.io.OutputStream os) Outputs this object to the specified output stream. |
static void |
outputValue(java.io.OutputStream os, java.math.BigInteger value) |
static void |
outputValue(java.io.OutputStream os, int value) |
static void |
outputValueWithTag(java.io.OutputStream os, java.math.BigInteger value, int tag) |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ASN1Integer(java.math.BigInteger value)
public ASN1Integer(long value)
public ASN1Integer(java.io.InputStream is) throws java.io.IOException
Method Detail |
public ASN1Header getHeader()
getHeader
in interface ASN1TaggedObject
public java.math.BigInteger getValue()
public int intValue()
public long longValue()
public boolean equals(int n)
true
if and only if the integer represented by this ASN.1 object is equal to the given value.public java.lang.String toString()
public void input(java.io.InputStream is) throws java.io.IOException
Streamable
input
in interface Streamable
java.io.IOException
public static java.math.BigInteger inputValue(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
Streamable
output
in interface Streamable
java.io.IOException
public int length()
Streamable
length
in interface Streamable
public static void outputValue(java.io.OutputStream os, java.math.BigInteger value) throws java.io.IOException
java.io.IOException
public static void outputValue(java.io.OutputStream os, int value) throws java.io.IOException
java.io.IOException
public static void outputValueWithTag(java.io.OutputStream os, java.math.BigInteger value, int tag) throws java.io.IOException
java.io.IOException
|
Oracle Security Developer Tools Crypto Java API Reference 10g Release 2 (10.1.2.0.2) B15565-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |