Class ExternalTlsDirContextAuthenticationStrategy

    • Constructor Detail

      • ExternalTlsDirContextAuthenticationStrategy

        public ExternalTlsDirContextAuthenticationStrategy()
    • Method Detail

      • applyAuthentication

        protected void applyAuthentication​(javax.naming.ldap.LdapContext ctx,
                                           java.lang.String userDn,
                                           java.lang.String password)
                                    throws javax.naming.NamingException
        Description copied from class: AbstractTlsDirContextAuthenticationStrategy
        Apply the actual authentication to the specified LdapContext . Typically, this will involve adding stuff to the environment.
        Specified by:
        applyAuthentication in class AbstractTlsDirContextAuthenticationStrategy
        Parameters:
        ctx - the LdapContext instance.
        userDn - the user dn of the user to authenticate.
        password - the password of the user to authenticate.
        Throws:
        javax.naming.NamingException - if any error occurs.