public class SSLChannelFactory extends Object implements DataChannelFactory
DataChannelFactory.ConnectOptions| Constructor and Description |
|---|
SSLChannelFactory(InstanceParams params)
Constructor for use during creating based on access configuration
|
SSLChannelFactory(SSLContext serverSSLContext,
SSLContext clientSSLContext,
SSLParameters baseSSLParameters,
SSLAuthenticator sslAuthenticator,
HostnameVerifier sslHostVerifier,
InstanceLogger logger)
Constructor for use when SSL configuration objects have already
been constructed.
|
| Modifier and Type | Method and Description |
|---|---|
DataChannel |
acceptChannel(SocketChannel socketChannel)
Construct a DataChannel wrapping the newly accepted SocketChannel
|
DataChannel |
connect(InetSocketAddress addr,
InetSocketAddress localAddr,
DataChannelFactory.ConnectOptions connectOptions)
Construct a DataChannel wrapping a new connection to the specified
address using the associated connection options.
|
static boolean |
isValidAuthenticator(String authSpec)
Checks whether the auth string is a valid authenticator specification
|
static boolean |
isValidHostVerifier(String hvSpec)
Checks whether input string is a valid host verifier specification
|
static KeyStore |
readKeyStore(InstanceContext context)
Reads the KeyStore configured in the ReplicationNetworkConfig into
memory.
|
public SSLChannelFactory(InstanceParams params)
public SSLChannelFactory(SSLContext serverSSLContext, SSLContext clientSSLContext, SSLParameters baseSSLParameters, SSLAuthenticator sslAuthenticator, HostnameVerifier sslHostVerifier, InstanceLogger logger)
public DataChannel acceptChannel(SocketChannel socketChannel)
acceptChannel in interface DataChannelFactorysocketChannel - the newly accepted SocketChannelpublic DataChannel connect(InetSocketAddress addr, InetSocketAddress localAddr, DataChannelFactory.ConnectOptions connectOptions) throws IOException
connect in interface DataChannelFactoryaddr - The remote address to which the connection should be made.
It is possible for a DataChannelFactory implementation to
proxy this connection through an intermediary.localAddr - the local address the socket will be bound to. A null
value leaves the choice open to the OS.connectOptions - the collection of connection options to be
applied to the connection.IOExceptionpublic static KeyStore readKeyStore(InstanceContext context)
public static boolean isValidAuthenticator(String authSpec)
public static boolean isValidHostVerifier(String hvSpec)
Copyright © 2024. All rights reserved.