Class LdapContextSource

    • Constructor Detail

      • LdapContextSource

        public LdapContextSource()
    • Method Detail

      • getDirContextInstance

        protected javax.naming.directory.DirContext getDirContextInstance​(java.util.Hashtable<java.lang.String,​java.lang.Object> environment)
                                                                   throws javax.naming.NamingException
        Description copied from class: AbstractContextSource
        Implement in subclass to create a DirContext of the desired type (e.g. InitialDirContext or InitialLdapContext).
        Specified by:
        getDirContextInstance in class AbstractContextSource
        Parameters:
        environment - the environment to use when creating the instance.
        Returns:
        a new DirContext instance.
        Throws:
        javax.naming.NamingException - if one is encountered when creating the instance.