public interface ProtonSslEngine
SSLEngine
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCipherSuite() |
java.lang.Runnable |
getDelegatedTask() |
int |
getEffectiveApplicationBufferSize()
Gets the application buffer size.
|
javax.net.ssl.SSLEngineResult.HandshakeStatus |
getHandshakeStatus() |
int |
getPacketBufferSize() |
java.lang.String |
getProtocol() |
boolean |
getUseClientMode() |
javax.net.ssl.SSLEngineResult |
unwrap(java.nio.ByteBuffer src,
java.nio.ByteBuffer dst) |
javax.net.ssl.SSLEngineResult |
wrap(java.nio.ByteBuffer src,
java.nio.ByteBuffer dst) |
javax.net.ssl.SSLEngineResult wrap(java.nio.ByteBuffer src, java.nio.ByteBuffer dst) throws javax.net.ssl.SSLException
javax.net.ssl.SSLException
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.
javax.net.ssl.SSLEngineResult unwrap(java.nio.ByteBuffer src, java.nio.ByteBuffer dst) throws javax.net.ssl.SSLException
javax.net.ssl.SSLException
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 {@link Status#BUFFER_UNDERFLOW} occurs. If underflow occurs the
pointers within both src and dst are unchanged and the bytesConsumed and
bytesProduced on the returned result are zero.
java.lang.Runnable getDelegatedTask()
javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus()
int getEffectiveApplicationBufferSize()
int getPacketBufferSize()
java.lang.String getCipherSuite()
java.lang.String getProtocol()
boolean getUseClientMode()