Package org.conscrypt

Class OpenSSLBIOInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class OpenSSLBIOInputStream
extends FilterInputStream
Provides an interface to OpenSSL's BIO system directly from a Java InputStream. It allows an OpenSSL API to read directly from something more flexible interface than a byte array.
  • Constructor Details

    • OpenSSLBIOInputStream

      public OpenSSLBIOInputStream​(InputStream is)
  • Method Details

    • getBioContext

      public long getBioContext()
    • gets

      public int gets​(byte[] buffer) throws IOException
      Similar to a readLine method, but matches what OpenSSL expects from a BIO_gets method.
      Throws:
      IOException