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.IOExceptionpublic boolean isHandShakeSuccessful()
protected void doHandshake()
throws java.io.IOException
java.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
java.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException