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 SSLContextFactory
or com.hazelcast.nio.ssl.SSLEngineFactory
.
public SSLConfig setFactoryClassName(String factoryClassName)
Class can either be an SSLContextFactory
or com.hazelcast.nio.ssl.SSLEngineFactory
.
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 SSLContextFactory
or
com.hazelcast.nio.ssl.SSLEngineFactory
.
factoryImplementation
- the implementation objectpublic Object getFactoryImplementation()
Object is instance of an SSLContextFactory
or com.hazelcast.nio.ssl.SSLEngineFactory
.
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 © 2021 Hazelcast, Inc.. All Rights Reserved.