|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.asn1.ASN1BitString
public class ASN1BitString
The universal ASN.1 bit string type.
The input may be any valid BER encoding of an ASN.1 bit string. The output is always a DER encoding.
Constructor Summary | |
---|---|
ASN1BitString() |
|
ASN1BitString(java.math.BigInteger v) Creates a new bit string from the given integer value. |
|
ASN1BitString(byte[] value) |
|
ASN1BitString(byte[] value, int unused) |
|
ASN1BitString(java.io.InputStream is) |
|
ASN1BitString(int nBits) Creates a new ASN.1 bit string of the specified number of bits. |
Method Summary | |
---|---|
int |
bitLength() |
void |
clearBit(int n) Clears the specified bit. |
ASN1Header |
getHeader() |
int |
getUnused() |
byte[] |
getValue() |
void |
input(java.io.InputStream is) Inputs this object from the specified input stream. |
static byte[] |
inputValue(java.io.InputStream is) |
int |
intValue() |
int |
length() Length of this object's encoding. |
void |
output(java.io.OutputStream os) Outputs this object to the specified output stream. |
static void |
outputValue(java.io.OutputStream os, byte[] value) |
static void |
outputValueWithTag(java.io.OutputStream os, byte[] value, int tag) |
void |
setBit(int n) Sets the specified bit. |
boolean |
testBit(int n) Tests the specified bit. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASN1BitString()
public ASN1BitString(byte[] value)
public ASN1BitString(byte[] value, int unused)
public ASN1BitString(int nBits)
public ASN1BitString(java.math.BigInteger v)
The new bit string is obtained from the binary expansion of n, most significant bit first, not including the sign bit.
public ASN1BitString(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ASN1Header getHeader()
getHeader
in interface ASN1TaggedObject
public byte[] getValue()
public int intValue()
public int getUnused()
public int bitLength()
public boolean testBit(int n)
java.lang.ArithmeticException
- If the bit index is out of boundspublic void setBit(int n)
java.lang.ArithmeticException
- If the bit index is out of boundspublic void clearBit(int n)
java.lang.ArithmeticException
- If the bit index is out of boundspublic java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
Streamable
input
in interface Streamable
java.io.IOException
public static byte[] 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, byte[] value) throws java.io.IOException
java.io.IOException
public static void outputValueWithTag(java.io.OutputStream os, byte[] value, int tag) throws java.io.IOException
java.io.IOException
|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |