ASN1OctetStringParser (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.asn1

## Interface ASN1OctetStringParser

- All Superinterfaces:
    ASN1Encodable, InMemoryRepresentable
  All Known Implementing Classes:
    ASN1OctetString, BEROctetString, BEROctetStringParser, DEROctetString, DEROctetStringParser

      public interface ASN1OctetStringParser
      extends ASN1Encodable, InMemoryRepresentable

  A basic parser for an OCTET STRING object

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.io.InputStream` | `getOctetStream()` Return the content of the OCTET STRING as an InputStream.

    - ### Methods inherited from interface org.bouncycastle.asn1.ASN1Encodable

      `toASN1Primitive`

    - ### Methods inherited from interface org.bouncycastle.asn1.InMemoryRepresentable

      `getLoadedObject`

- - ### Method Detail

    - #### getOctetStream

          java.io.InputStream getOctetStream()

      Return the content of the OCTET STRING as an InputStream.
      Returns:
        an InputStream representing the OCTET STRING's content.