Class SSLEngineNioHelper
java.lang.Object
org.ovirt.vdsm.jsonrpc.client.reactors.SSLEngineNioHelper
Helper object responsible for low level ssl communication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBufferprivate final ByteBufferprivate OneTimeCallbackprivate final SocketChannelprivate final SSLClientprivate final SSLEngineprotected static org.slf4j.Loggerprivate static final intprivate final ByteBufferprivate final ByteBufferprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionSSLEngineNioHelper(SocketChannel channel, SSLEngine engine, OneTimeCallback callback, SSLClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanprocess()private voidputBuffer(ByteBuffer buff) intread(ByteBuffer buff) voidvoidwrite(ByteBuffer buff)
-
Field Details
-
log
protected static org.slf4j.Logger log -
MAX_ATTEMPTS
private static final int MAX_ATTEMPTS- See Also:
-
PEER_CERTS_FETCH_DELAY_MS
private static final long PEER_CERTS_FETCH_DELAY_MS- See Also:
-
channel
-
engine
-
appBuffer
-
packetBuffer
-
appPeerBuffer
-
packatPeerBuffer
-
client
-
callback
-
-
Constructor Details
-
SSLEngineNioHelper
public SSLEngineNioHelper(SocketChannel channel, SSLEngine engine, OneTimeCallback callback, SSLClient client)
-
-
Method Details
-
beginHandshake
- Throws:
SSLException
-
read
- Throws:
IOException
-
putBuffer
-
write
- Throws:
IOException
-
process
- Throws:
IOExceptionClientConnectionException
-
handshakeInProgress
public boolean handshakeInProgress() -
clearBuff
public void clearBuff() -
getSSLEngine
-
verifyPeerCertificates
-