Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DERExternalParser

extends Object
implements ASN1ExternalParser
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1ExternalParser, org.bouncycastle.asn1.InMemoryRepresentable, org.bouncycastle.asn1.ASN1Encodable
Imports
java.io.IOException

Parser DER EXTERNAL tagged objects.

Field Summary

Modifier and TypeField and Description
private ASN1StreamParser

Constructor Summary

AccessConstructor and Description
public
DERExternalParser(ASN1StreamParser
the underlying parser to read the DER EXTERNAL from.
parser
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public ASN1Primitive

Returns:

a DERExternal.
getLoadedObject
()

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the EXTERNAL object.
pack-priv static DLExternal
public ASN1Encodable
readObject()

Implements org.bouncycastle.asn1.ASN1ExternalParser.readObject.

Read the next object in the parser.
public ASN1Primitive

Returns:

an DERExternal
toASN1Primitive
()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

Field Detail

_parserback to summary
private ASN1StreamParser _parser

Constructor Detail

DERExternalParserback to summary
public DERExternalParser(ASN1StreamParser parser)

Base constructor.

Parameters
parser:ASN1StreamParser

the underlying parser to read the DER EXTERNAL from.

Method Detail

getLoadedObjectback to summary
public ASN1Primitive getLoadedObject() throws IOException

Implements org.bouncycastle.asn1.InMemoryRepresentable.getLoadedObject.

Return an in-memory, encodable, representation of the EXTERNAL object.

Returns:ASN1Primitive

a DERExternal.

Exceptions
IOException:
if there is an issue loading the data.
parseback to summary
pack-priv static DLExternal parse(ASN1StreamParser sp) throws IOException
readObjectback to summary
public ASN1Encodable readObject() throws IOException

Implements org.bouncycastle.asn1.ASN1ExternalParser.readObject.

Doc from org.bouncycastle.asn1.ASN1ExternalParser.readObject.

Read the next object in the parser.

Returns:ASN1Encodable

an ASN1Encodable

Exceptions
IOException:
on a parsing or decoding error.
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an DERExternal representing this parser and its contents.

Returns:ASN1Primitive

an DERExternal