public interface SSLEngineFactory
SSLEngineFactory
is responsible for creating an SSLEngine instance.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 |
void init(Properties properties, boolean forClient) throws Exception
SSLConfig
properties
- 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.SSLEngine create(boolean clientMode)
clientMode
- 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'.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.