Class SSLEngineNioHelper
- java.lang.Object
-
- org.ovirt.vdsm.jsonrpc.client.reactors.SSLEngineNioHelper
-
public class SSLEngineNioHelper extends java.lang.ObjectHelper 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 voidbeginHandshake()voidclearBuff()javax.net.ssl.SSLEnginegetSSLEngine()booleanhandshakeInProgress()java.lang.Runnableprocess()intread(java.nio.ByteBuffer buff)voidwrite(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.IOExceptionClientConnectionException
-
handshakeInProgress
public boolean handshakeInProgress()
-
clearBuff
public void clearBuff()
-
getSSLEngine
public javax.net.ssl.SSLEngine getSSLEngine()
-
-