public class SSLStateMachine extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SSLStateMachine.MessageSendCallback |
static class |
SSLStateMachine.MessageSendItem
Each time we send a SIP message it will be associated with the originating channel.send() method
which keep additional information about the transport in its context.
|
Modifier and Type | Field and Description |
---|---|
protected NioTlsChannelInterface |
channel |
static ByteBuffer |
EMPTY_BUFFER |
protected Queue<SSLStateMachine.MessageSendItem> |
pendingOutboundBuffers |
protected SSLEngine |
sslEngine |
protected ByteBuffer |
tlsRecordBuffer |
Constructor and Description |
---|
SSLStateMachine(SSLEngine sslEngine,
NioTlsChannelInterface channel) |
Modifier and Type | Method and Description |
---|---|
void |
sendSSLMetadata(byte[] msg) |
void |
unwrap(ByteBuffer src) |
void |
wrap(ByteBuffer src,
ByteBuffer dst,
SSLStateMachine.MessageSendCallback callback) |
void |
wrapRemaining() |
public static final ByteBuffer EMPTY_BUFFER
protected SSLEngine sslEngine
protected Queue<SSLStateMachine.MessageSendItem> pendingOutboundBuffers
protected NioTlsChannelInterface channel
protected ByteBuffer tlsRecordBuffer
public SSLStateMachine(SSLEngine sslEngine, NioTlsChannelInterface channel)
public void wrapRemaining() throws IOException
IOException
public void wrap(ByteBuffer src, ByteBuffer dst, SSLStateMachine.MessageSendCallback callback) throws IOException
IOException
public void unwrap(ByteBuffer src) throws Exception
Exception
public void sendSSLMetadata(byte[] msg) throws IOException
IOException
Copyright © 2018. All Rights Reserved.