Package org.bouncycastle.asn1
Class BERBitStringParser
java.lang.Object
org.bouncycastle.asn1.BERBitStringParser
- All Implemented Interfaces:
ASN1BitStringParser
,ASN1Encodable
,InMemoryRepresentable
Deprecated.
Check for 'ASN1BitStringParser' instead
A parser for indefinite-length BIT STRINGs.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return an InputStream representing the contents of the BIT STRING.Deprecated.Get the in-memory representation of the ASN.1 object.Deprecated.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
Deprecated.Return the number of pad bits, if any, in the final byte, if any, read fromASN1BitStringParser.getBitStream()
.Deprecated.Return an object, possibly constructed, of ASN.1 primitives
-
Method Details
-
getOctetStream
Deprecated.Description copied from interface:ASN1BitStringParser
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).- Specified by:
getOctetStream
in interfaceASN1BitStringParser
- Returns:
- an InputStream with its source as the BIT STRING content.
- Throws:
IOException
-
getBitStream
Deprecated.Description copied from interface:ASN1BitStringParser
Return an InputStream representing the contents of the BIT STRING. The final byte, if any, may include pad bits. SeeASN1BitStringParser.getPadBits()
.- Specified by:
getBitStream
in interfaceASN1BitStringParser
- Returns:
- an InputStream with its source as the BIT STRING content.
- Throws:
IOException
-
getPadBits
public int getPadBits()Deprecated.Description copied from interface:ASN1BitStringParser
Return the number of pad bits, if any, in the final byte, if any, read fromASN1BitStringParser.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 ifASN1BitStringParser.getOctetStream()
was used instead ofASN1BitStringParser.getBitStream()
).- Specified by:
getPadBits
in interfaceASN1BitStringParser
- Returns:
- the number of pad bits. In the range zero to seven.
-
getLoadedObject
Deprecated.Description copied from interface:InMemoryRepresentable
Get the in-memory representation of the ASN.1 object.- Specified by:
getLoadedObject
in interfaceInMemoryRepresentable
- Returns:
- an ASN1Primitive representing the loaded object.
- Throws:
IOException
- for bad input data.
-
toASN1Primitive
Deprecated.Description copied from interface:ASN1Encodable
Return an object, possibly constructed, of ASN.1 primitives- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Returns:
- an ASN.1 primitive.
-