Interface ILdapService


  • public interface ILdapService
    Factory interface for creating LDAP connections.
    Since:
    8.5.0
    Author:
    Norman Lorenz
    • Method Detail

      • createConnection

        @NotNull
        @NotNull com.unboundid.ldap.sdk.LDAPConnection createConnection​(LdapConnectionConfig config)
                                                                 throws FcLdapException
        Creates a new LDAP connection.
        Parameters:
        config - The configuration for the LDAP connection.
        Returns:
        A new LDAP connection.
        Throws:
        FcLdapException - If the connection could not be established.
      • testConnection

        boolean testConnection​(LdapConnectionConfig config)
                        throws FcLdapException
        Tests the connection to an LDAP server.
        Parameters:
        config - The configuration for the LDAP connection.
        Returns:
        True if the connection is successful, false otherwise.
        Throws:
        FcLdapException - If the connection could not be established.