Package de.xima.fc.ldap
Interface ILdapService
-
public interface ILdapServiceFactory interface for creating LDAP connections.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull com.unboundid.ldap.sdk.LDAPConnectioncreateConnection(LdapConnectionConfig config)Creates a new LDAP connection.booleantestConnection(LdapConnectionConfig config)Tests the connection to an LDAP server.
-
-
-
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.
-
-