com.hazelcast.config
Class SSLConfig

java.lang.Object
  extended by com.hazelcast.config.SSLConfig

public final class SSLConfig
extends Object

SSL configuration


Constructor Summary
SSLConfig()
           
 
Method Summary
 String getFactoryClassName()
          Returns the name of the SSLContextFactory implementation class
 Object getFactoryImplementation()
          Returns the SSLContextFactory 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 SSLContextFactory implementation class
 SSLConfig setFactoryImplementation(Object factoryImplementation)
          Sets the SSLContextFactory implementation object
 SSLConfig setProperties(Properties properties)
          Sets the properties.
 SSLConfig setProperty(String name, String value)
          Sets a property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSLConfig

public SSLConfig()
Method Detail

getFactoryClassName

public String getFactoryClassName()
Returns the name of the SSLContextFactory implementation class

Returns:
the name of the class

setFactoryClassName

public SSLConfig setFactoryClassName(String factoryClassName)
Sets the name for the SSLContextFactory implementation class

Parameters:
factoryClassName - the name of the SSLContextFactory implementation class to set

isEnabled

public boolean isEnabled()
Returns if this configuration is enabled

Returns:
true if enabled, false otherwise

setEnabled

public SSLConfig setEnabled(boolean enabled)
Enables and disables this configuration

Parameters:
enabled -

setFactoryImplementation

public SSLConfig setFactoryImplementation(Object factoryImplementation)
Sets the SSLContextFactory implementation object

Parameters:
factoryImplementation - factory implementation object
Returns:
this SSLConfig instance

getFactoryImplementation

public Object getFactoryImplementation()
Returns the SSLContextFactory implementation object

Returns:
SSLContextFactory implementation object

setProperty

public SSLConfig setProperty(String name,
                             String value)
Sets a property.

Parameters:
name - the name of the property to set.
value - the value of the property to set
Returns:
the updated SSLConfig
Throws:
NullPointerException - if name or value is null.

getProperty

public String getProperty(String name)
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 is null.

getProperties

public Properties getProperties()
Gets all properties.

Returns:
the properties.

setProperties

public SSLConfig setProperties(Properties properties)
Sets the properties.

Parameters:
properties - the properties to set.
Returns:
the updated SSLConfig.
Throws:
IllegalArgumentException - if properties is null.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.