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 Detail

      • OpenSSLBIOInputStream

        public OpenSSLBIOInputStream​(InputStream is,
                                     boolean isFinite)
    • Method Detail

      • getBioContext

        public long getBioContext()
      • release

        public void release()
      • 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