Class SSLEngineNioHelper
- java.lang.Object
-
- org.ovirt.vdsm.jsonrpc.client.reactors.SSLEngineNioHelper
-
public class SSLEngineNioHelper extends java.lang.Object
Helper object responsible for low level ssl communication.
-
-
Constructor Summary
Constructors Constructor Description SSLEngineNioHelper(java.nio.channels.SocketChannel channel, javax.net.ssl.SSLEngine engine, OneTimeCallback callback, SSLClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginHandshake()
void
clearBuff()
javax.net.ssl.SSLEngine
getSSLEngine()
boolean
handshakeInProgress()
java.lang.Runnable
process()
int
read(java.nio.ByteBuffer buff)
void
write(java.nio.ByteBuffer buff)
-
-
-
Constructor Detail
-
SSLEngineNioHelper
public SSLEngineNioHelper(java.nio.channels.SocketChannel channel, javax.net.ssl.SSLEngine engine, OneTimeCallback callback, SSLClient client)
-
-
Method Detail
-
beginHandshake
public void beginHandshake() throws javax.net.ssl.SSLException
- Throws:
javax.net.ssl.SSLException
-
read
public int read(java.nio.ByteBuffer buff) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(java.nio.ByteBuffer buff) throws java.io.IOException
- Throws:
java.io.IOException
-
process
public java.lang.Runnable process() throws java.io.IOException, ClientConnectionException
- Throws:
java.io.IOException
ClientConnectionException
-
handshakeInProgress
public boolean handshakeInProgress()
-
clearBuff
public void clearBuff()
-
getSSLEngine
public javax.net.ssl.SSLEngine getSSLEngine()
-
-