public class SSLHandshake extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
SSLHandshake.HandshakeCallback |
| Constructor and Description |
|---|
SSLHandshake(InetSocketAddress endpoint,
WebSocket webSocket)
Instantiates a new sSL handshake.
|
| Modifier and Type | Method and Description |
|---|---|
protected SSLEngineResult |
doCallbackIncreaseBufferProcess(SSLHandshake.HandshakeCallback callback,
com.taobao.api.internal.toplink.embedded.websocket.handshake.SSLHandshake.HandshakeBuffer hb) |
void |
doHandshake(SocketChannel socket)
Do handshake.
|
void |
unwrap(ByteBuffer netBuffer,
ByteBuffer localBuffer)
Unwrap.
|
void |
wrap(ByteBuffer localBuffer,
ByteBuffer netBuffer)
Wrap.
|
public SSLHandshake(InetSocketAddress endpoint, WebSocket webSocket) throws WebSocketException
endpoint - the endpointWebSocketException - the web socket exceptionpublic void doHandshake(SocketChannel socket) throws WebSocketException
socket - the socketWebSocketException - the web socket exceptionprotected SSLEngineResult doCallbackIncreaseBufferProcess(SSLHandshake.HandshakeCallback callback, com.taobao.api.internal.toplink.embedded.websocket.handshake.SSLHandshake.HandshakeBuffer hb) throws SSLException, WebSocketException
SSLExceptionWebSocketExceptionpublic void wrap(ByteBuffer localBuffer, ByteBuffer netBuffer) throws WebSocketException
localBuffer - the local buffernetBuffer - the net bufferWebSocketException - the web socket exceptionpublic void unwrap(ByteBuffer netBuffer, ByteBuffer localBuffer) throws WebSocketException
netBuffer - the net bufferlocalBuffer - the local bufferWebSocketException - the web socket exceptionCopyright © 2021. All rights reserved.