org.jasig.cas.adaptors.ldap
Class BindLdapAuthenticationHandler

java.lang.Object
  extended by org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
      extended by org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
          extended by org.jasig.cas.adaptors.ldap.AbstractLdapUsernamePasswordAuthenticationHandler
              extended by org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler, NamedAuthenticationHandler, org.springframework.beans.factory.InitializingBean

public class BindLdapAuthenticationHandler
extends AbstractLdapUsernamePasswordAuthenticationHandler

Handler to do LDAP bind.

Since:
3.0.3
Version:
$Revision: 47522 $ $Date: 2009-12-14 23:33:36 -0500 (Mon, 14 Dec 2009) $
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
log
 
Constructor Summary
BindLdapAuthenticationHandler()
           
 
Method Summary
protected  boolean authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials)
           
protected  java.lang.String composeCompleteDnToCheck(java.lang.String dn, UsernamePasswordCredentials credentials)
           
protected  int getMaxNumberResults()
          Method to return the max number of results allowed.
protected  int getScope()
          Method to return the scope.
protected  java.lang.String getSearchBase()
          Method to return the search base.
protected  int getTimeout()
          Method to return the timeout.
protected  boolean isAllowMultipleAccounts()
          Method to return whether multiple accounts are allowed.
 void setAllowMultipleAccounts(boolean allowMultipleAccounts)
           
 void setMaxNumberResults(int maxNumberResults)
           
 void setScope(int scope)
           
 void setSearchBase(java.lang.String searchBase)
           
 void setTimeout(int timeout)
           
 
Methods inherited from class org.jasig.cas.adaptors.ldap.AbstractLdapUsernamePasswordAuthenticationHandler
afterPropertiesSet, getContextSource, getFilter, getLdapTemplate, setContextSource, setFilter, setIgnorePartialResultException
 
Methods inherited from class org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
doAuthentication, getPasswordEncoder, getPrincipalNameTransformer, setClassToSupport, setPasswordEncoder, setPrincipalNameTransformer, setSupportSubClasses, supports
 
Methods inherited from class org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
authenticate, getName, postAuthenticate, preAuthenticate, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindLdapAuthenticationHandler

public BindLdapAuthenticationHandler()
Method Detail

authenticateUsernamePasswordInternal

protected final boolean authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials)
                                                      throws AuthenticationException
Specified by:
authenticateUsernamePasswordInternal in class AbstractUsernamePasswordAuthenticationHandler
Throws:
AuthenticationException

composeCompleteDnToCheck

protected java.lang.String composeCompleteDnToCheck(java.lang.String dn,
                                                    UsernamePasswordCredentials credentials)

isAllowMultipleAccounts

protected boolean isAllowMultipleAccounts()
Method to return whether multiple accounts are allowed.

Returns:
true if multiple accounts are allowed, false otherwise.

getMaxNumberResults

protected int getMaxNumberResults()
Method to return the max number of results allowed.

Returns:
the maximum number of results.

getScope

protected int getScope()
Method to return the scope.

Returns:
the scope

getSearchBase

protected java.lang.String getSearchBase()
Method to return the search base.

Returns:
the search base.

getTimeout

protected int getTimeout()
Method to return the timeout.

Returns:
the timeout.

setScope

public final void setScope(int scope)

setAllowMultipleAccounts

public void setAllowMultipleAccounts(boolean allowMultipleAccounts)
Parameters:
allowMultipleAccounts - The allowMultipleAccounts to set.

setMaxNumberResults

public final void setMaxNumberResults(int maxNumberResults)
Parameters:
maxNumberResults - The maxNumberResults to set.

setSearchBase

public final void setSearchBase(java.lang.String searchBase)
Parameters:
searchBase - The searchBase to set.

setTimeout

public final void setTimeout(int timeout)
Parameters:
timeout - The timeout to set.


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.