org.jasig.cas.adaptors.ldap
Class AbstractLdapUsernamePasswordAuthenticationHandler

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
All Implemented Interfaces:
AuthenticationHandler, NamedAuthenticationHandler, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
BindLdapAuthenticationHandler, FastBindLdapAuthenticationHandler

public abstract class AbstractLdapUsernamePasswordAuthenticationHandler
extends AbstractUsernamePasswordAuthenticationHandler
implements org.springframework.beans.factory.InitializingBean

Abstract class to handle common LDAP functionality.

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
AbstractLdapUsernamePasswordAuthenticationHandler()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.springframework.ldap.core.ContextSource getContextSource()
           
protected  java.lang.String getFilter()
           
protected  org.springframework.ldap.core.LdapTemplate getLdapTemplate()
          Method to return the LdapTemplate
 void setContextSource(org.springframework.ldap.core.ContextSource contextSource)
          Method to set the datasource and generate a JdbcTemplate.
 void setFilter(java.lang.String filter)
           
 void setIgnorePartialResultException(boolean ignorePartialResultException)
           
 
Methods inherited from class org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
authenticateUsernamePasswordInternal, 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

AbstractLdapUsernamePasswordAuthenticationHandler

public AbstractLdapUsernamePasswordAuthenticationHandler()
Method Detail

setContextSource

public final void setContextSource(org.springframework.ldap.core.ContextSource contextSource)
Method to set the datasource and generate a JdbcTemplate.

Parameters:
contextSource - the datasource to use.

setIgnorePartialResultException

public final void setIgnorePartialResultException(boolean ignorePartialResultException)

getLdapTemplate

protected final org.springframework.ldap.core.LdapTemplate getLdapTemplate()
Method to return the LdapTemplate

Returns:
a fully created LdapTemplate.

getContextSource

protected final org.springframework.ldap.core.ContextSource getContextSource()

getFilter

protected final java.lang.String getFilter()

afterPropertiesSet

public final void afterPropertiesSet()
                              throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

setFilter

public final void setFilter(java.lang.String filter)
Parameters:
filter - The filter to set.


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