public class OpenSSLEngineFactory extends SSLEngineFactorySupport implements SSLEngineFactory
SSLEngineFactory for OpenSSL.| Modifier and Type | Field and Description |
|---|---|
static String |
FIPS_MODE
Property name which allows to set OpenSSL engine into FIPS 140-2 mode.
|
static String |
KEY_CERT_CHAIN_FILE
Property name which holds path to an X.509 certificate chain file in PEM format.
|
static String |
KEY_FILE
Property name which holds path to a key file (PKCS#8 in PEM format).
|
static String |
KEY_PASSWORD
Property name which holds password (if any) of the key file.
|
static String |
TRUST_CERT_COLLECTION_FILE
Property name which holds path to an X.509 certificate collection file in PEM format.
|
JAVA_NET_SSL_PREFIX, kmf, protocol, tmf| Constructor and Description |
|---|
OpenSSLEngineFactory() |
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
create(boolean clientMode)
Creates a SSLEngine.
|
protected io.netty.handler.ssl.SslContext |
createSslContext(boolean clientMode) |
void |
init(Properties properties,
boolean forClient)
Initializes this class with config from
SSLConfig |
getProperty, getProperty, load, loadKeyManagerFactory, loadKeyManagerFactory, loadKeyStore, loadTrustManagerFactory, loadTrustManagerFactorypublic static final String KEY_FILE
public static final String KEY_PASSWORD
public static final String KEY_CERT_CHAIN_FILE
public static final String TRUST_CERT_COLLECTION_FILE
public static final String FIPS_MODE
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.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'.protected io.netty.handler.ssl.SslContext createSslContext(boolean clientMode)
throws SSLException
SSLExceptionCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.