public final class SSLConfig extends Object
Constructor and Description |
---|
SSLConfig() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 String getFactoryClassName()
Class can either be an SSLContextFactory
or SSLEngineFactory
.
public SSLConfig setFactoryClassName(String factoryClassName)
Class can either be an SSLContextFactory
or 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
SSLEngineFactory
.
factoryImplementation
- the implementation objectpublic Object getFactoryImplementation()
Object is instance of an SSLContextFactory
or 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 © 2018 Hazelcast, Inc.. All Rights Reserved.