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 contextIOException
public boolean isHandShakeSuccessful()
protected void doHandshake() throws IOException
IOException
public int read(ByteBuffer dst) throws IOException
IOException
public int write(ByteBuffer src) throws IOException
IOException
public void close() throws IOException
IOException
Copyright © 2003, 2023, Oracle and/or its affiliates.