Interface ILdapService
public interface ILdapService
Factory interface for creating LDAP connections.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescription@NotNull com.unboundid.ldap.sdk.LDAPConnectioncreateConnection(LdapConnectionConfig config) Creates a new LDAP connection.booleantestConnection(LdapConnectionConfig config) Tests the connection to an LDAP server.
-
Method Details
-
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
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.
-