Class BindAuthenticator2

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.springframework.security.ldap.authentication.LdapAuthenticator

    public class BindAuthenticator2
    extends org.springframework.security.ldap.authentication.BindAuthenticator
    BindAuthenticator with improved diagnostics.
    Author:
    Kohsuke Kawaguchi
    • Field Summary

      • Fields inherited from class org.springframework.security.ldap.authentication.AbstractLdapAuthenticator

        messages
    • Constructor Summary

      Constructors 
      Constructor Description
      BindAuthenticator2​(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)  
    • Constructor Detail

      • BindAuthenticator2

        public BindAuthenticator2​(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
    • Method Detail

      • authenticate

        public org.springframework.ldap.core.DirContextOperations authenticate​(org.springframework.security.core.Authentication authentication)
        Specified by:
        authenticate in interface org.springframework.security.ldap.authentication.LdapAuthenticator
        Overrides:
        authenticate in class org.springframework.security.ldap.authentication.BindAuthenticator
      • handleBindException

        protected void handleBindException​(String userDn,
                                           String username,
                                           Throwable cause)
        Overrides:
        handleBindException in class org.springframework.security.ldap.authentication.BindAuthenticator