Package org.bouncycastle.asn1
Class BERApplicationSpecificParser
- java.lang.Object
-
- org.bouncycastle.asn1.BERApplicationSpecificParser
-
- All Implemented Interfaces:
ASN1ApplicationSpecificParser,ASN1Encodable,InMemoryRepresentable
public class BERApplicationSpecificParser extends java.lang.Object implements ASN1ApplicationSpecificParser
A parser for indefinite-length ASN.1 ApplicationSpecific objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1PrimitivegetLoadedObject()Return an in-memory, encodable, representation of the application specific object.ASN1EncodablereadObject()Return the object contained in this application specific object,ASN1PrimitivetoASN1Primitive()Return a BERApplicationSpecific representing this parser and its contents.
-
-
-
Method Detail
-
readObject
public ASN1Encodable readObject() throws java.io.IOException
Return the object contained in this application specific object,- Specified by:
readObjectin interfaceASN1ApplicationSpecificParser- Returns:
- the contained object.
- Throws:
java.io.IOException- if the underlying stream cannot be read, or does not contain an ASN.1 encoding.
-
getLoadedObject
public ASN1Primitive getLoadedObject() throws java.io.IOException
Return an in-memory, encodable, representation of the application specific object.- Specified by:
getLoadedObjectin interfaceInMemoryRepresentable- Returns:
- a BERApplicationSpecific.
- Throws:
java.io.IOException- if there is an issue loading the data.
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Return a BERApplicationSpecific representing this parser and its contents.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Returns:
- a BERApplicationSpecific
-
-