Package org.bouncycastle.asn1
Class DERExternalParser
java.lang.Object
org.bouncycastle.asn1.DERExternalParser
- All Implemented Interfaces:
ASN1Encodable
,ASN1ExternalParser
,InMemoryRepresentable
Parser DER EXTERNAL tagged objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn an in-memory, encodable, representation of the EXTERNAL object.Read the next object in the parser.Return an DERExternal representing this parser and its contents.
-
Constructor Details
-
DERExternalParser
Base constructor.- Parameters:
parser
- the underlying parser to read the DER EXTERNAL from.
-
-
Method Details
-
readObject
Description copied from interface:ASN1ExternalParser
Read the next object in the parser.- Specified by:
readObject
in interfaceASN1ExternalParser
- Returns:
- an ASN1Encodable
- Throws:
IOException
- on a parsing or decoding error.
-
getLoadedObject
Return an in-memory, encodable, representation of the EXTERNAL object.- Specified by:
getLoadedObject
in interfaceInMemoryRepresentable
- Returns:
- a DERExternal.
- Throws:
IOException
- if there is an issue loading the data.
-
toASN1Primitive
Return an DERExternal representing this parser and its contents.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Returns:
- an DERExternal
-