Interface StaticServiceDiscoveryMechanismCfg

All Superinterfaces:
Configuration, ServiceDiscoveryMechanismCfg

public interface StaticServiceDiscoveryMechanismCfg extends ServiceDiscoveryMechanismCfg
A server-side interface for querying Static Service Discovery Mechanism settings.

A Static Service Discovery Mechanism returns a fixed list of LDAP directory servers.

  • Method Details

    • configurationClass

      Class<? extends StaticServiceDiscoveryMechanismCfg> configurationClass()
      Gets the configuration class associated with this Static Service Discovery Mechanism.
      Specified by:
      configurationClass in interface Configuration
      Specified by:
      configurationClass in interface ServiceDiscoveryMechanismCfg
      Returns:
      Returns the configuration class associated with this Static Service Discovery Mechanism.
    • addStaticChangeListener

      void addStaticChangeListener(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)
      Register to be notified when this Static Service Discovery Mechanism is changed.
      Parameters:
      listener - The Static Service Discovery Mechanism configuration change listener.
    • removeStaticChangeListener

      void removeStaticChangeListener(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)
      Deregister an existing Static Service Discovery Mechanism configuration change listener.
      Parameters:
      listener - The Static Service Discovery Mechanism configuration change listener.
    • getDiscoveryInterval

      long getDiscoveryInterval()
      Gets the "discovery-interval" property.

      Interval between two server configuration discovery executions.

      Specifies how frequently to read the configuration of the servers in order to discover their new information.

      Default value: 60s

      Returns:
      Returns the value of the "discovery-interval" property.
    • getJavaClass

      String getJavaClass()
      Gets the "java-class" property.

      Specifies the fully-qualified name of the Java class that provides the Static Service Discovery Mechanism implementation.

      Default value: org.opends.server.discovery.StaticServiceDiscoveryMechanism

      Specified by:
      getJavaClass in interface ServiceDiscoveryMechanismCfg
      Returns:
      Returns the value of the "java-class" property.
    • getKeyManagerProvider

      String getKeyManagerProvider()
      Gets the "key-manager-provider" property.

      Specifies the name of the key manager that should be used with this Static Service Discovery Mechanism.

      Default value is undefined

      Returns:
      Returns the value of the "key-manager-provider" property.
    • getKeyManagerProviderDn

      Dn getKeyManagerProviderDn()
      Gets the "key-manager-provider" property as a DN.

      Specifies the name of the key manager that should be used with this Static Service Discovery Mechanism.

      Returns:
      Returns the DN value of the "key-manager-provider" property.
    • getPrimaryServer

      SortedSet<com.forgerock.opendj.util.HostPort> getPrimaryServer()
      Gets the "primary-server" property.

      Specifies a list of servers that will be used in preference to secondary servers when available.

      When using an IPv6 address as the hostname, put brackets around the address as in "[IPv6Address]:port".

      Default value is undefined

      Returns:
      Returns an unmodifiable set containing the values of the "primary-server" property.
    • getSecondaryServer

      SortedSet<com.forgerock.opendj.util.HostPort> getSecondaryServer()
      Gets the "secondary-server" property.

      Specifies a list of servers that will be used in place of primary servers when all primary servers are unavailable.

      When using an IPv6 address as the hostname, put brackets around the address as in "[IPv6Address]:port".

      Default value is undefined

      Returns:
      Returns an unmodifiable set containing the values of the "secondary-server" property.
    • getSslCertNickname

      SortedSet<String> getSslCertNickname()
      Gets the "ssl-cert-nickname" property.

      Specifies the nicknames (also called the aliases) of the keys or key pairs that the Static Service Discovery Mechanism should use when performing SSL communication.

      The property can be used multiple times (referencing different nicknames) when server certificates with different public key algorithms are used in parallel (for example, RSA, DSA, and ECC-based algorithms). When a nickname refers to an asymmetric (public/private) key pair, the nickname for the public key certificate and associated private key entry must match exactly. A single nickname is used to retrieve both the public key and the private key. This is only applicable when the Static Service Discovery Mechanism is configured to use SSL.

      Returns:
      Returns an unmodifiable set containing the values of the "ssl-cert-nickname" property.
    • getSslCipherSuite

      SortedSet<String> getSslCipherSuite()
      Gets the "ssl-cipher-suite" property.

      Specifies the names of the SSL cipher suites that are allowed for use in SSL or TLS communication.

      Returns:
      Returns an unmodifiable set containing the values of the "ssl-cipher-suite" property.
    • getSslProtocol

      SortedSet<String> getSslProtocol()
      Gets the "ssl-protocol" property.

      Specifies the names of the SSL protocols that are allowed for use in SSL or TLS communication.

      Returns:
      Returns an unmodifiable set containing the values of the "ssl-protocol" property.
    • getTrustManagerProvider

      String getTrustManagerProvider()
      Gets the "trust-manager-provider" property.

      Specifies the name of the trust manager that should be used with the Static Service Discovery Mechanism.

      Default value is undefined

      Returns:
      Returns the value of the "trust-manager-provider" property.
    • getTrustManagerProviderDn

      Dn getTrustManagerProviderDn()
      Gets the "trust-manager-provider" property as a DN.

      Specifies the name of the trust manager that should be used with the Static Service Discovery Mechanism.

      Returns:
      Returns the DN value of the "trust-manager-provider" property.
    • isUseSaslExternal

      boolean isUseSaslExternal()
      Gets the "use-sasl-external" property.

      Indicates whether the Static Service Discovery Mechanism should use certificate based authentication when communicating with backend servers.

      If enabled, the Static Service Discovery Mechanism will use mutual TLS when connecting to backend servers. Once the TLS handshake has completed, a SASL/External LDAP bind request will be sent in order to associate the TLS client certificate with an LDAP account on the remote backend server. A key manager provider containing the client certificate must be configured in order to use this feature.

      Default value: false

      Returns:
      Returns the value of the "use-sasl-external" property.
    • isUseSsl

      boolean isUseSsl()
      Gets the "use-ssl" property.

      Indicates whether the Static Service Discovery Mechanism should use SSL.

      If enabled, the Static Service Discovery Mechanism will use SSL to encrypt communication with the clients.

      Default value: false

      Returns:
      Returns the value of the "use-ssl" property.
    • isUseStartTls

      boolean isUseStartTls()
      Gets the "use-start-tls" property.

      Indicates whether the Static Service Discovery Mechanism should use Start TLS.

      If enabled, the Static Service Discovery Mechanism will use Start TLS to encrypt communication with remote servers.

      Default value: false

      Returns:
      Returns the value of the "use-start-tls" property.