Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-05


oracle.security.crypto.asn1
Class ASN1Integer

java.lang.Object
  extended by oracle.security.crypto.asn1.ASN1Integer

All Implemented Interfaces:
ASN1Object, ASN1TaggedObject, Streamable

public class ASN1Integer
extends java.lang.Object
implements ASN1TaggedObject

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(oracle.security.crypto.core.math.BigInt value)
           
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.
 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()
           

 

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ASN1Integer

public ASN1Integer(java.math.BigInteger value)

ASN1Integer

public ASN1Integer(oracle.security.crypto.core.math.BigInt value)

ASN1Integer

public ASN1Integer(long value)

ASN1Integer

public ASN1Integer(java.io.InputStream is)
            throws java.io.IOException
Throws:
java.io.IOException

Method Detail

erase

public void erase()

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

getHeader

public ASN1Header getHeader()
Specified by:
getHeader in interface ASN1TaggedObject

getValue

public java.math.BigInteger getValue()

getBigIntValue

public oracle.security.crypto.core.math.BigInt getBigIntValue()

intValue

public int intValue()

longValue

public long longValue()

equals

public boolean equals(int n)
Returns true if and only if the integer represented by this ASN.1 object is equal to the given value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Description copied from interface: Streamable
Inputs this object from the specified input stream.
Specified by:
input in interface Streamable
Throws:
java.io.IOException

inputByteArrayValue

public static byte[] inputByteArrayValue(java.io.InputStream is)
                                  throws java.io.IOException
Throws:
java.io.IOException

inputValue

public static java.math.BigInteger inputValue(java.io.InputStream is)
                                       throws java.io.IOException
Throws:
java.io.IOException

inputBigIntValue

public static oracle.security.crypto.core.math.BigInt inputBigIntValue(java.io.InputStream is)
                                                                throws java.io.IOException
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Description copied from interface: Streamable
Outputs this object to the specified output stream.
Specified by:
output in interface Streamable
Throws:
java.io.IOException

length

public int length()
Description copied from interface: Streamable
Length of this object's encoding.
Specified by:
length in interface Streamable

outputValue

public static void outputValue(java.io.OutputStream os,
                               java.math.BigInteger value)
                        throws java.io.IOException
Throws:
java.io.IOException

outputValue

public static void outputValue(java.io.OutputStream os,
                               int value)
                        throws java.io.IOException
Throws:
java.io.IOException

outputValueWithTag

public static void outputValueWithTag(java.io.OutputStream os,
                                      java.math.BigInteger value,
                                      int tag)
                               throws java.io.IOException
Throws:
java.io.IOException

Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-05


Copyright © 2005, 2013, Oracle. All rights reserved.