Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DEROctetStringParser

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

Deprecated

Check for 'ASN1OctetStringParser' instead

Parser for DER encoded OCTET STRINGS

Field Summary

Modifier and TypeField and Description
private DefiniteLengthInputStream

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ASN1Primitive

Returns:

a DEROctetString.
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.
public ASN1Primitive

Returns:

an DEROctetString
toASN1Primitive
()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

Field Detail

streamback to summary
private DefiniteLengthInputStream stream

Constructor Detail

DEROctetStringParserback to summary
pack-priv DEROctetStringParser(DefiniteLengthInputStream stream)

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 DEROctetString.

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.

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an DEROctetString representing this parser and its contents.

Returns:ASN1Primitive

an DEROctetString