Class DefaultConnectionHandler

    • Constructor Detail

      • DefaultConnectionHandler

        public DefaultConnectionHandler()
        Default constructor.
      • DefaultConnectionHandler

        public DefaultConnectionHandler​(LdapConfig lc)
        Creates a new DefaultConnectionHandler with the supplied ldap config.
        Parameters:
        lc - ldap config
      • DefaultConnectionHandler

        public DefaultConnectionHandler​(DefaultConnectionHandler ch)
        Copy constructor for DefaultConnectionHandler.
        Parameters:
        ch - to copy properties from
    • Method Detail

      • connectInternal

        protected void connectInternal​(java.lang.String authtype,
                                       java.lang.String dn,
                                       java.lang.Object credential,
                                       java.util.Hashtable<java.lang.String,​java.lang.Object> env)
                                throws javax.naming.NamingException
        Create the initial ldap context and prepare the connection for use.
        Specified by:
        connectInternal in class AbstractConnectionHandler
        Parameters:
        authtype - security mechanism to bind with
        dn - to bind as
        credential - to bind with in conjunction with dn
        env - to pass to the initial ldap context
        Throws:
        javax.naming.NamingException - if a connection cannot be established