Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class BEROctetStringParser

extends Object
implements ASN1OctetStringParser
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1OctetStringParser, org.bouncycastle.asn1.InMemoryRepresentable, org.bouncycastle.asn1.ASN1Encodable
Imports
java.io.IOException, .InputStream, org.bouncycastle.util.io.Streams

Deprecated

Check for 'ASN1OctetStringParser' instead

A parser for indefinite-length OCTET STRINGs.

Field Summary

Modifier and TypeField and Description
private ASN1StreamParser

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ASN1Primitive

Returns:

a BEROctetString.
getLoadedObject
()

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the OCTET STRING.
public InputStream

Returns:

an InputStream with its source as the OCTET STRING content.
getOctetStream
()

Implements org.bouncycastle.asn1.ASN1OctetStringParser.getOctetStream.

Return an InputStream representing the contents of the OCTET STRING.
pack-priv static BEROctetString
public ASN1Primitive

Returns:

an BEROctetString
toASN1Primitive
()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an BEROctetString representing this parser and its contents.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_parserback to summary
private ASN1StreamParser _parser

Constructor Detail

BEROctetStringParserback to summary
pack-priv BEROctetStringParser(ASN1StreamParser parser)

Method Detail

getLoadedObjectback to summary
public ASN1Primitive getLoadedObject() throws IOException

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the OCTET STRING.

Returns:ASN1Primitive

a BEROctetString.

Exceptions
IOException:
if there is an issue loading the data.
getOctetStreamback to summary
public InputStream getOctetStream()

Implements org.bouncycastle.asn1.ASN1OctetStringParser.getOctetStream.

Return an InputStream representing the contents of the OCTET STRING.

Returns:InputStream

an InputStream with its source as the OCTET STRING content.

parseback to summary
pack-priv static BEROctetString parse(ASN1StreamParser sp) throws IOException
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an BEROctetString representing this parser and its contents.

Returns:ASN1Primitive

an BEROctetString