public final class SSLConfig extends Object
Constructor and Description |
---|
SSLConfig() |
SSLConfig(SSLConfig sslConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFactoryClassName()
Returns the name of the implementation class.
|
Object |
getFactoryImplementation()
Returns the factory implementation object.
|
Properties |
getProperties()
Gets all properties.
|
String |
getProperty(String name)
Gets a property.
|
int |
hashCode() |
boolean |
isEnabled()
Returns if this configuration is enabled.
|
SSLConfig |
setEnabled(boolean enabled)
Enables and disables this configuration.
|
SSLConfig |
setFactoryClassName(String factoryClassName)
Sets the name for the implementation class.
|
SSLConfig |
setFactoryImplementation(Object factoryImplementation)
Sets the implementation object.
|
SSLConfig |
setProperties(Properties properties)
Sets the properties.
|
SSLConfig |
setProperty(String name,
String value)
Sets a property.
|
String |
toString() |
public SSLConfig()
public SSLConfig(SSLConfig sslConfig)
public String getFactoryClassName()
Class can either be an com.hazelcast.nio.ssl.SSLContextFactory
or com.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).
public SSLConfig setFactoryClassName(String factoryClassName)
Class can either be an com.hazelcast.nio.ssl.SSLContextFactory
or com.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).
factoryClassName
- the name implementation classpublic boolean isEnabled()
true
if enabled, false
otherwisepublic SSLConfig setEnabled(boolean enabled)
enabled
- true
to enable, false
to disablepublic SSLConfig setFactoryImplementation(Object factoryImplementation)
Object must be instance of an com.hazelcast.nio.ssl.SSLContextFactory
or
com.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).
factoryImplementation
- the implementation objectpublic Object getFactoryImplementation()
Object is instance of an com.hazelcast.nio.ssl.SSLContextFactory
or com.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).
public SSLConfig setProperty(String name, String value)
name
- the name of the property to setvalue
- the value of the property to setNullPointerException
- if name or value is null
public String getProperty(String name)
name
- the name of the property to getNullPointerException
- if name is null
public Properties getProperties()
public SSLConfig setProperties(Properties properties)
properties
- the properties to setIllegalArgumentException
- if properties is null
Copyright © 2019 Hazelcast, Inc.. All rights reserved.