Class ComTLSConnection
java.lang.Object
one.microstream.communication.tls.ComTLSConnection
- All Implemented Interfaces:
ComConnection
public class ComTLSConnection extends Object implements ComConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.communication.types.ComConnection
ComConnection.Default
-
Constructor Summary
Constructors Constructor Description ComTLSConnection(SocketChannel channel, SSLContext sslContext, TLSParametersProvider tlsParameterProvider, boolean clientMode)
-
Method Summary
Modifier and Type Method Description void
close()
void
enableSecurity()
ByteBuffer
read(ByteBuffer defaultBuffer, int length)
void
readCompletely(ByteBuffer buffer)
void
readUnsecure(ByteBuffer buffer)
void
setTimeOut(int inactivityTimeout)
void
write(ByteBuffer buffer, int timeout)
void
writeCompletely(ByteBuffer buffer)
void
writeUnsecured(ByteBuffer buffer)
-
Constructor Details
-
ComTLSConnection
public ComTLSConnection(SocketChannel channel, SSLContext sslContext, TLSParametersProvider tlsParameterProvider, boolean clientMode)
-
-
Method Details
-
readCompletely
- Specified by:
readCompletely
in interfaceComConnection
-
readUnsecure
- Specified by:
readUnsecure
in interfaceComConnection
-
writeUnsecured
- Specified by:
writeUnsecured
in interfaceComConnection
-
read
- Specified by:
read
in interfaceComConnection
-
close
public void close()- Specified by:
close
in interfaceComConnection
-
writeCompletely
- Specified by:
writeCompletely
in interfaceComConnection
-
write
- Specified by:
write
in interfaceComConnection
-
enableSecurity
public void enableSecurity()- Specified by:
enableSecurity
in interfaceComConnection
-
setTimeOut
public void setTimeOut(int inactivityTimeout)- Specified by:
setTimeOut
in interfaceComConnection
-