Package com.hazelcast.config
Class SSLConfig
java.lang.Object
com.hazelcast.config.SSLConfig
public final class SSLConfig extends Object
SSL configuration.
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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()
-
Constructor Details
-
Method Details
-
getFactoryClassName
Returns the name of the implementation class.Class can either be an
SSLContextFactory
orcom.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).- Returns:
- the name implementation class
-
setFactoryClassName
Sets the name for the implementation class.Class can either be an
SSLContextFactory
orcom.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).- Parameters:
factoryClassName
- the name implementation class
-
isEnabled
public boolean isEnabled()Returns if this configuration is enabled.- Returns:
true
if enabled,false
otherwise
-
setEnabled
Enables and disables this configuration.- Parameters:
enabled
-true
to enable,false
to disable
-
setFactoryImplementation
Sets the implementation object.Object must be instance of an
SSLContextFactory
orcom.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).- Parameters:
factoryImplementation
- the implementation object- Returns:
- this SSLConfig instance
-
getFactoryImplementation
Returns the factory implementation object.Object is instance of an
SSLContextFactory
orcom.hazelcast.nio.ssl.SSLEngineFactory
(Enterprise edition).- Returns:
- the factory implementation object
-
setProperty
Sets a property.- Parameters:
name
- the name of the property to setvalue
- the value of the property to set- Returns:
- the updated SSLConfig
- Throws:
NullPointerException
- if name or value isnull
-
getProperty
Gets a property.- Parameters:
name
- the name of the property to get- Returns:
- the value of the property, null if not found
- Throws:
NullPointerException
- if name isnull
-
getProperties
Gets all properties.- Returns:
- the properties
-
setProperties
Sets the properties.- Parameters:
properties
- the properties to set- Returns:
- the updated SSLConfig
- Throws:
IllegalArgumentException
- if properties isnull
-
toString
-
equals
-
hashCode
public int hashCode()
-