Package de.xima.fc.ldap
Class LDAPConnectionFactory
- java.lang.Object
-
- de.xima.fc.ldap.LDAPConnectionFactory
-
public class LDAPConnectionFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description LDAPConnectionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(LDAPGruppe gruppe, MandantLdapData data)Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(LDAPGruppe gruppe, MandantLdapData data, String username, String password)Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(LDAPZugriff zugriff)static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(MandantLdapData data)Deprecated.MandantLdapDatais deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(MandantLdapData data, String username, String password)Deprecated.MandantLdapDatais deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount)static com.unboundid.ldap.sdk.LDAPConnectiongetConnection(SocketFactory socketFactory, com.unboundid.ldap.sdk.LDAPConnectionOptions options, String host, int port, String bindDN, String bindPassword)static com.unboundid.ldap.sdk.LDAPConnectiongetKerberosConnection()static com.unboundid.ldap.sdk.LDAPConnectiongetNTLMLConnection()Deprecated.static booleantestConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount)
-
-
-
Method Detail
-
getConnection
public static com.unboundid.ldap.sdk.LDAPConnection getConnection(SocketFactory socketFactory, com.unboundid.ldap.sdk.LDAPConnectionOptions options, String host, int port, String bindDN, String bindPassword) throws com.unboundid.ldap.sdk.LDAPException
- Throws:
com.unboundid.ldap.sdk.LDAPException
-
getConnection
public static com.unboundid.ldap.sdk.LDAPConnection getConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
- Throws:
GeneralSecurityExceptioncom.unboundid.ldap.sdk.LDAPException
-
testConnection
public static boolean testConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
- Throws:
GeneralSecurityExceptioncom.unboundid.ldap.sdk.LDAPException
-
getConnection
public static com.unboundid.ldap.sdk.LDAPConnection getConnection(LDAPZugriff zugriff) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
getNTLMLConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getNTLMLConnection() throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
Deprecated.NTLM cannot be configured anymore in the UI and will be removed in the future. Use Kerberos instead.- Returns:
- A new LDAP connection
- Throws:
com.unboundid.ldap.sdk.LDAPException- If the connection could not be establishedGeneralSecurityException- If the connection could not be established due to a security issue.
-
getKerberosConnection
public static com.unboundid.ldap.sdk.LDAPConnection getKerberosConnection() throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(MandantLdapData data) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
Deprecated.MandantLdapDatais deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
GeneralSecurityExceptioncom.unboundid.ldap.sdk.LDAPException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(MandantLdapData data, String username, String password) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
Deprecated.MandantLdapDatais deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
GeneralSecurityExceptioncom.unboundid.ldap.sdk.LDAPException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(LDAPGruppe gruppe, MandantLdapData data) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(LDAPGruppe gruppe, MandantLdapData data, String username, String password) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
Deprecated.MandantLdapData&LDAPGruppeare deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticators.- Throws:
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityException
-
-