Package org.bouncycastle.asn1
Class DEROctetStringParser
java.lang.Object
org.bouncycastle.asn1.DEROctetStringParser
- All Implemented Interfaces:
ASN1Encodable,ASN1OctetStringParser,InMemoryRepresentable
Parser for DER encoded OCTET STRINGS
-
Method Summary
Modifier and TypeMethodDescriptionReturn an in-memory, encodable, representation of the OCTET STRING.Return an InputStream representing the contents of the OCTET STRING.Return an DEROctetString representing this parser and its contents.
-
Method Details
-
getOctetStream
Return an InputStream representing the contents of the OCTET STRING.- Specified by:
getOctetStreamin interfaceASN1OctetStringParser- Returns:
- an InputStream with its source as the OCTET STRING content.
-
getLoadedObject
Return an in-memory, encodable, representation of the OCTET STRING.- Specified by:
getLoadedObjectin interfaceInMemoryRepresentable- Returns:
- a DEROctetString.
- Throws:
IOException- if there is an issue loading the data.
-
toASN1Primitive
Return an DEROctetString representing this parser and its contents.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Returns:
- an DEROctetString
-