public class TlsClientConnector extends TcpClientConnector
contextUtil, LOGGER| Constructor and Description |
|---|
TlsClientConnector(SSLContext sslContext,
int numberOfThreads,
int connectTimeoutMillis,
int idleTimeout)
Creates TLS client connector with custom SSL context.
|
TlsClientConnector(SSLContext sslContext,
int numberOfThreads,
int connectTimeoutMillis,
int handshakeTimeoutMillis,
int idleTimeout)
Creates TLS client connector with custom SSL context.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProtocol() |
protected void |
onNewChannelCreated(SocketAddress remote,
io.netty.channel.Channel ch)
Called when a new channel is created, Allows subclasses to add their own
handlers first, like an SSL handler.
|
protected void |
send(io.netty.channel.Channel channel,
org.eclipse.californium.elements.EndpointContextMatcher endpointMatcher,
org.eclipse.californium.elements.RawData msg)
Send message with acquired channel.
|
destroy, getAddress, send, setEndpointContextMatcher, setRawDataReceiver, start, stop, toStringpublic TlsClientConnector(SSLContext sslContext, int numberOfThreads, int connectTimeoutMillis, int idleTimeout)
sslContext - ssl contextnumberOfThreads - number of thread used by connectorconnectTimeoutMillis - tcp connect timeout in millisecondsidleTimeout - idle timeout in seconds to close unused connection.public TlsClientConnector(SSLContext sslContext, int numberOfThreads, int connectTimeoutMillis, int handshakeTimeoutMillis, int idleTimeout)
sslContext - ssl contextnumberOfThreads - number of thread used by connectorconnectTimeoutMillis - tcp connect timeout in millisecondshandshakeTimeoutMillis - handshake timeout in millisecondsidleTimeout - idle timeout in seconds to close unused connectionprotected void send(io.netty.channel.Channel channel,
org.eclipse.californium.elements.EndpointContextMatcher endpointMatcher,
org.eclipse.californium.elements.RawData msg)
send in class TcpClientConnectorchannel - acquired channelendpointMatcher - endpoint matchermsg - message to be sendprotected void onNewChannelCreated(SocketAddress remote, io.netty.channel.Channel ch)
TcpClientConnectorChannel.remoteAddress() is null. To
create a "remote peer" aware SSLEngine, provide the remote address as
additional parameter.onNewChannelCreated in class TcpClientConnectorremote - remote address the channel will be connected to.ch - new created channelpublic String getProtocol()
getProtocol in interface org.eclipse.californium.elements.ConnectorgetProtocol in class TcpClientConnectorCopyright © 2021 Eclipse Foundation. All rights reserved.