public class BlockingSslHandler extends Object
| Constructor and Description |
|---|
BlockingSslHandler(SSLEngine sslEngine,
SocketChannel ch,
boolean directBuf,
ByteOrder order,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
applicationBuffer() |
ByteBuffer |
decode(ByteBuffer buf)
Called by SSL filter when new message was received.
|
ByteBuffer |
encrypt(ByteBuffer src)
Encrypts data to be written to the network.
|
boolean |
handshake()
Performs handshake procedure with remote peer.
|
ByteBuffer |
inputBuffer() |
public BlockingSslHandler(SSLEngine sslEngine, SocketChannel ch, boolean directBuf, ByteOrder order, IgniteLogger log) throws SSLException
sslEngine - SSLEngine.ch - Socket channel.directBuf - Direct buffer flag.order - Byte order.log - Logger.SSLExceptionpublic ByteBuffer inputBuffer()
public boolean handshake()
throws IgniteCheckedException,
SSLException
GridNioException - If filter processing has thrown an exception.SSLException - If failed to process SSL data.IgniteCheckedExceptionpublic ByteBuffer applicationBuffer()
public ByteBuffer encrypt(ByteBuffer src) throws SSLException
src - data to encrypt.SSLException - on errors.public ByteBuffer decode(ByteBuffer buf) throws IgniteCheckedException, SSLException
buf - Received message.GridNioException - If exception occurred while forwarding events to underlying filter.SSLException - If failed to process SSL data.IgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021