|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.ASN1BitString
Base class for BIT STRING objects
Method Summary | |
java.io.InputStream |
getBitStream()
Return an InputStream representing the contents of the BIT STRING. |
byte[] |
getBytes()
|
protected static byte[] |
getBytes(int bitString)
|
int |
getBytesLength()
|
static ASN1BitString |
getInstance(ASN1TaggedObject taggedObject,
boolean explicit)
|
static ASN1BitString |
getInstance(java.lang.Object obj)
|
ASN1Primitive |
getLoadedObject()
Get the in-memory representation of the ASN.1 object. |
byte[] |
getOctets()
Return the octets contained in this BIT STRING, checking that this BIT STRING really does represent an octet aligned string. |
java.io.InputStream |
getOctetStream()
Return an InputStream representing the contents of the BIT STRING, where the content is expected to be octet-aligned (this will be automatically checked during parsing). |
int |
getPadBits()
Return the number of pad bits, if any, in the final byte, if any, read from getBitStream() . |
protected static int |
getPadBits(int bitString)
|
java.lang.String |
getString()
Return a String representation of this BIT STRING |
int |
hashCode()
|
int |
intValue()
|
boolean |
isOctetAligned()
|
ASN1BitStringParser |
parser()
|
java.lang.String |
toString()
|
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive |
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
getEncoded, getEncoded, hasEncodedTagValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.bouncycastle.asn1.ASN1Encodable |
toASN1Primitive |
Method Detail |
public static ASN1BitString getInstance(java.lang.Object obj)
public static ASN1BitString getInstance(ASN1TaggedObject taggedObject, boolean explicit)
protected static int getPadBits(int bitString)
bitString
- an int containing the BIT STRING
protected static byte[] getBytes(int bitString)
bitString
- an int containing the BIT STRING
public java.io.InputStream getBitStream() throws java.io.IOException
ASN1BitStringParser
ASN1BitStringParser.getPadBits()
.
getBitStream
in interface ASN1BitStringParser
java.io.IOException
public java.io.InputStream getOctetStream() throws java.io.IOException
ASN1BitStringParser
getOctetStream
in interface ASN1BitStringParser
java.io.IOException
public ASN1BitStringParser parser()
public java.lang.String getString()
getString
in interface ASN1String
public int intValue()
public byte[] getOctets()
public byte[] getBytes()
public int getBytesLength()
public boolean isOctetAligned()
public int getPadBits()
ASN1BitStringParser
ASN1BitStringParser.getBitStream()
. This number is in the range zero to seven. That
number of the least significant bits of the final byte, if any, are not part
of the contents and should be ignored. NOTE: Must be called AFTER the stream
has been fully processed. (Does not need to be called if
ASN1BitStringParser.getOctetStream()
was used instead of ASN1BitStringParser.getBitStream()
).
getPadBits
in interface ASN1BitStringParser
public java.lang.String toString()
public int hashCode()
hashCode
in class ASN1Primitive
public ASN1Primitive getLoadedObject()
InMemoryRepresentable
getLoadedObject
in interface InMemoryRepresentable
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |