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.LDAPConnection
getConnection(LDAPGruppe gruppe, MandantLdapData data)
Deprecated.MandantLdapData
&LDAPGruppe
are deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnection
getConnection(LDAPGruppe gruppe, MandantLdapData data, String username, String password)
Deprecated.MandantLdapData
&LDAPGruppe
are deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnection
getConnection(LDAPZugriff zugriff)
static com.unboundid.ldap.sdk.LDAPConnection
getConnection(MandantLdapData data)
Deprecated.MandantLdapData
is deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnection
getConnection(MandantLdapData data, String username, String password)
Deprecated.MandantLdapData
is deprecated since version 8.0.0.static com.unboundid.ldap.sdk.LDAPConnection
getConnection(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount)
static com.unboundid.ldap.sdk.LDAPConnection
getConnection(SocketFactory socketFactory, com.unboundid.ldap.sdk.LDAPConnectionOptions options, String host, int port, String bindDN, String bindPassword)
static com.unboundid.ldap.sdk.LDAPConnection
getKerberosConnection()
static com.unboundid.ldap.sdk.LDAPConnection
getNTLMLConnection()
Deprecated.static boolean
testConnection(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:
GeneralSecurityException
com.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:
GeneralSecurityException
com.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.LDAPException
GeneralSecurityException
-
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.LDAPException
GeneralSecurityException
-
getConnection
@Deprecated public static com.unboundid.ldap.sdk.LDAPConnection getConnection(MandantLdapData data) throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
Deprecated.MandantLdapData
is deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticator
s.- Throws:
GeneralSecurityException
com.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.MandantLdapData
is deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticator
s.- Throws:
GeneralSecurityException
com.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
&LDAPGruppe
are deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticator
s.- Throws:
com.unboundid.ldap.sdk.LDAPException
GeneralSecurityException
-
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
&LDAPGruppe
are deprecated since version 8.0.0. LDAP-Connections for login may be set up asIAuthenticator
s.- Throws:
com.unboundid.ldap.sdk.LDAPException
GeneralSecurityException
-
-