public class ASN1Integer extends java.lang.Object implements ASN1TaggedObject
The input may be any valid BER encoding of an ASN.1 integer. The output is always a DER encoding.
| Constructor and Description |
|---|
ASN1Integer(oracle.security.crypto.core.math.BigInt value) |
ASN1Integer(java.math.BigInteger value) |
ASN1Integer(java.io.InputStream is) |
ASN1Integer(long value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(int n)
Returns
true if and only if the integer represented by this ASN.1 object is equal to the given value. |
void |
erase() |
void |
finalize() |
oracle.security.crypto.core.math.BigInt |
getBigIntValue() |
ASN1Header |
getHeader() |
java.math.BigInteger |
getValue() |
void |
input(java.io.InputStream is)
Inputs this object from the specified input stream.
|
static oracle.security.crypto.core.math.BigInt |
inputBigIntValue(java.io.InputStream is) |
static byte[] |
inputByteArrayValue(java.io.InputStream is) |
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() |
public ASN1Integer(java.math.BigInteger value)
public ASN1Integer(oracle.security.crypto.core.math.BigInt value)
public ASN1Integer(long value)
public ASN1Integer(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic void erase()
public void finalize()
finalize in class java.lang.Objectpublic ASN1Header getHeader()
getHeader in interface ASN1TaggedObjectpublic java.math.BigInteger getValue()
public oracle.security.crypto.core.math.BigInt getBigIntValue()
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()
toString in class java.lang.Object
public void input(java.io.InputStream is)
throws java.io.IOException
Streamableinput in interface Streamablejava.io.IOException
public static byte[] inputByteArrayValue(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
public static java.math.BigInteger inputValue(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
public static oracle.security.crypto.core.math.BigInt inputBigIntValue(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
Streamableoutput in interface Streamablejava.io.IOExceptionpublic int length()
Streamablelength 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