Interface ProtonSslEngine


  • public interface ProtonSslEngine
    Thin wrapper around an SSLEngine.
    • Method Detail

      • wrap

        javax.net.ssl.SSLEngineResult wrap​(java.nio.ByteBuffer src,
                                           java.nio.ByteBuffer dst)
                                    throws javax.net.ssl.SSLException
        Throws:
        javax.net.ssl.SSLException
        See Also:
        Note that wrap really does write one packet worth of data to the dst byte buffer. If dst byte buffer is insufficiently large the pointers within both src and dst are unchanged and the bytesConsumed and bytesProduced on the returned result are zero.
      • unwrap

        javax.net.ssl.SSLEngineResult unwrap​(java.nio.ByteBuffer src,
                                             java.nio.ByteBuffer dst)
                                      throws javax.net.ssl.SSLException
        Throws:
        javax.net.ssl.SSLException
        See Also:
        Note that unwrap does read exactly one packet of encoded data from src and write to dst. If src contains insufficient bytes to read a complete packet occurs. If underflow occurs the pointers within both src and dst are unchanged and the bytesConsumed and bytesProduced on the returned result are zero.
      • getDelegatedTask

        java.lang.Runnable getDelegatedTask()
      • getHandshakeStatus

        javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus()
      • getEffectiveApplicationBufferSize

        int getEffectiveApplicationBufferSize()
        Gets the application buffer size.
      • getPacketBufferSize

        int getPacketBufferSize()
      • getCipherSuite

        java.lang.String getCipherSuite()
      • getProtocol

        java.lang.String getProtocol()
      • getUseClientMode

        boolean getUseClientMode()