Class SSLConfig

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

public final class SSLConfig
extends Object
SSL configuration.
  • Constructor Details

  • Method Details

    • getFactoryClassName

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

      Class can either be an SSLContextFactory or com.hazelcast.nio.ssl.SSLEngineFactory (Enterprise edition).

      Returns:
      the name implementation class
    • setFactoryClassName

      public SSLConfig setFactoryClassName​(@Nonnull String factoryClassName)
      Sets the name for the implementation class.

      Class can either be an SSLContextFactory or com.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

      public SSLConfig setEnabled​(boolean enabled)
      Enables and disables this configuration.
      Parameters:
      enabled - true to enable, false to disable
    • setFactoryImplementation

      public SSLConfig setFactoryImplementation​(@Nonnull Object factoryImplementation)
      Sets the implementation object.

      Object must be instance of an SSLContextFactory or com.hazelcast.nio.ssl.SSLEngineFactory (Enterprise edition).

      Parameters:
      factoryImplementation - the implementation object
      Returns:
      this SSLConfig instance
    • getFactoryImplementation

      public Object getFactoryImplementation()
      Returns the factory implementation object.

      Object is instance of an SSLContextFactory or com.hazelcast.nio.ssl.SSLEngineFactory (Enterprise edition).

      Returns:
      the factory 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
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object