public interface SSLEngineFactory
SSLEngineFactoryis responsible for creating an SSLEngine instance.
void init(Properties properties, boolean forClient) throws Exception
properties- properties form config
forClient- 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 © 2017 Hazelcast, Inc.. All Rights Reserved.