public class NIOSSLHandShake
extends java.lang.Object
Constructor and Description |
---|
NIOSSLHandShake(javax.net.ssl.SSLEngine engine,
java.nio.channels.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(java.nio.ByteBuffer dst)
Reads the encrypted data
|
int |
write(java.nio.ByteBuffer src)
Writes the data
|
public NIOSSLHandShake(javax.net.ssl.SSLEngine engine, java.nio.channels.SocketChannel m_socketChannel, com.portal.pcm.PCPContext m_ctx) throws java.io.IOException
engine
- - ssl enginem_socketChannel
- related socket channelm_ctx
- - related pcp contextjava.io.IOException
public boolean isHandShakeSuccessful()
protected void doHandshake() throws java.io.IOException
java.io.IOException
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
java.io.IOException
public int write(java.nio.ByteBuffer src) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException