com.hazelcast.config

## Class MCMutualAuthConfig

- java.lang.Object
- - com.hazelcast.config.MCMutualAuthConfig

-     public final class MCMutualAuthConfig
      extends Object

  Management Center mutual authentication configuration. Config required to setup custom key & trust stores for the outgoing connections of the member towards the Management Center. A custom SSLContextFactory can also be provided for special needs.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MCMutualAuthConfig()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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.
    `MCMutualAuthConfig` | `setEnabled(boolean enabled)` Enables and disables this configuration.
    `MCMutualAuthConfig` | `setFactoryClassName(String factoryClassName)` Sets the name for the implementation class.
    `MCMutualAuthConfig` | `setFactoryImplementation(Object factoryImplementation)` Sets the implementation object.
    `MCMutualAuthConfig` | `setProperties(Properties properties)` Sets the properties.
    `MCMutualAuthConfig` | `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

    - #### MCMutualAuthConfig

          public MCMutualAuthConfig()

  - ### Method Detail

    - #### getFactoryClassName

          public String getFactoryClassName()

      Returns the name of the implementation class.

      Class can either be an `SSLContextFactory`.

      Returns:
        the name implementation class

    - #### setFactoryClassName

          public MCMutualAuthConfig setFactoryClassName(String factoryClassName)

      Sets the name for the implementation class.

      Class can either be an `SSLContextFactory`.

      Parameters:
        `factoryClassName` - the name implementation class

    - #### isEnabled

          public boolean isEnabled()

      Returns if this configuration is enabled.
      Returns:
        `true` if enabled, `false` otherwise

    - #### setEnabled

          public MCMutualAuthConfig setEnabled(boolean enabled)

      Enables and disables this configuration.
      Parameters:
        `enabled` - `true` to enable, `false` to disable

    - #### setFactoryImplementation

          public MCMutualAuthConfig setFactoryImplementation(Object factoryImplementation)

      Sets the implementation object.

      Object must be instance of an `SSLContextFactory`.

      Parameters:
        `factoryImplementation` - the implementation object
      Returns:
        this MCMutualAuthConfig instance

    - #### getFactoryImplementation

          public Object getFactoryImplementation()

      Returns the factory implementation object.

      Object is instance of an `SSLContextFactory`

      Returns:
        the factory implementation object

    - #### setProperty

          public MCMutualAuthConfig 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 MCMutualAuthConfig
      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 MCMutualAuthConfig setProperties(Properties properties)

      Sets the properties.
      Parameters:
        `properties` - the properties to set
      Returns:
        the updated MCMutualAuthConfig
      Throws:
        `IllegalArgumentException` - if properties is `null`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2018. All rights reserved.