public class

BindAuthenticator

extends AbstractLdapAuthenticator
java.lang.Object
   ↳ org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
     ↳ org.springframework.security.ldap.authentication.BindAuthenticator

Class Overview

An authenticator which binds as a user.

Summary

[Expand]
Inherited Fields
From class org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
Public Constructors
BindAuthenticator(BaseLdapPathContextSource contextSource)
Create an initialized instance using the BaseLdapPathContextSource provided.
Public Methods
DirContextOperations authenticate(Authentication authentication)
Protected Methods
void handleBindException(String userDn, String username, Throwable cause)
Allows subclasses to inspect the exception thrown by an attempt to bind with a particular DN.
[Expand]
Inherited Methods
From class org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.context.MessageSourceAware
From interface org.springframework.security.ldap.authentication.LdapAuthenticator

Public Constructors

public BindAuthenticator (BaseLdapPathContextSource contextSource)

Create an initialized instance using the BaseLdapPathContextSource provided.

Parameters
contextSource the BaseLdapPathContextSource instance against which bind operations will be performed.

Public Methods

public DirContextOperations authenticate (Authentication authentication)

Protected Methods

protected void handleBindException (String userDn, String username, Throwable cause)

Allows subclasses to inspect the exception thrown by an attempt to bind with a particular DN. The default implementation just reports the failure to the debug logger.