public class NIOSSLHandShake extends Object
| Constructor and Description |
|---|
NIOSSLHandShake(SSLEngine engine,
SocketChannel m_socketChannel,
com.portal.pcm.PCPContext m_ctx)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doHandshake()
Main method that does the Handshake
|
boolean |
isHandShakeSuccessful()
Returns the current status if handshake is successful or not.
|
int |
read(ByteBuffer dst)
Reads the encrypted data
|
int |
write(ByteBuffer src)
Writes the data
|
public NIOSSLHandShake(SSLEngine engine, SocketChannel m_socketChannel, com.portal.pcm.PCPContext m_ctx) throws IOException
engine - - ssl enginem_socketChannel - related socket channelm_ctx - - related pcp contextIOExceptionpublic boolean isHandShakeSuccessful()
protected void doHandshake()
throws IOException
IOExceptionpublic int read(ByteBuffer dst) throws IOException
IOExceptionpublic int write(ByteBuffer src) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2003, 2023, Oracle and/or its affiliates.