public class SSLEngineFactoryAdaptor extends Object implements SSLEngineFactory
| Constructor and Description |
|---|
SSLEngineFactoryAdaptor(com.hazelcast.nio.ssl.SSLContextFactory sslContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
create(boolean clientMode)
Creates a SSLEngine.
|
void |
init(Properties properties,
boolean forClient)
Initializes this class with config from
SSLConfig |
public SSLEngineFactoryAdaptor(com.hazelcast.nio.ssl.SSLContextFactory sslContextFactory)
public SSLEngine create(boolean clientMode)
SSLEngineFactorycreate in interface SSLEngineFactoryclientMode - if the SSLEngine should be in client mode, or server-mode. See SSLEngine.getUseClientMode().
If this SSLEngineFactory is used by a java-client, then clientMode will always be true. But if it is
created for a member, then the side of the socket that initiated the connection will be in 'clientMode'
while the other one will be in 'serverMode'.public void init(Properties properties, boolean forClient) throws Exception
SSLEngineFactorySSLConfiginit in interface SSLEngineFactoryproperties - properties form configforClient - if the SslEngineFactory is created for a client or for a member. This can be used to
validate the configuration.Exception - if something goes wrong while initializing.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.