Class AbstractJLdapConnectionFactory<T extends JLdapConnection>

    • Field Detail

      • ldapConstraints

        private final com.novell.ldap.LDAPConstraints ldapConstraints
        JLdap connection constraints.
      • socketTimeOut

        private final Duration socketTimeOut
        Amount of time in milliseconds that operations will wait.
    • Constructor Detail

      • AbstractJLdapConnectionFactory

        public AbstractJLdapConnectionFactory​(String url,
                                              ConnectionStrategy strategy,
                                              JLdapProviderConfig config,
                                              com.novell.ldap.LDAPConstraints constraints,
                                              Duration timeOut)
        Creates a new abstract jldap connection factory.
        Parameters:
        url - of the ldap to connect to
        strategy - connection strategy
        config - provider configuration
        constraints - connection constraints
        timeOut - time in milliseconds that operations will wait
    • Method Detail

      • createLDAPConnection

        protected abstract com.novell.ldap.LDAPConnection createLDAPConnection()
                                                                        throws com.novell.ldap.LDAPException
        Creates an ldap connection for use with this connection factory.
        Returns:
        ldap connection
        Throws:
        com.novell.ldap.LDAPException - if an error occurs creating the connection
      • initializeConnection

        protected void initializeConnection​(com.novell.ldap.LDAPConnection conn)
                                     throws com.novell.ldap.LDAPException
        Initialize the supplied connection after a connection has been established.
        Parameters:
        conn - to initialize
        Throws:
        com.novell.ldap.LDAPException - if an error occurs initializing the connection
      • createJLdapConnection

        protected abstract T createJLdapConnection​(com.novell.ldap.LDAPConnection conn,
                                                   JLdapProviderConfig config)
        Creates a jldap connection of the appropriate type for this connection factory.
        Parameters:
        conn - to create jldap connection with
        config - provider configuration
        Returns:
        jldap connection