Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.adapters.cas
Class CasPasswordHandler  view CasPasswordHandler download CasPasswordHandler.java

java.lang.Object
  extended byorg.acegisecurity.adapters.cas.CasPasswordHandler
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public final class CasPasswordHandler
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean

Provides actual CAS authentication by delegation to an AuthenticationManager.

Do not use this class directly. Instead configure CAS to use the CasPasswordHandlerProxy.

Version:
$Id: CasPasswordHandler.java,v 1.2 2005/11/17 00:56:28 benalex Exp $

Field Summary
private  org.acegisecurity.AuthenticationManager authenticationManager
           
private static org.apache.commons.logging.Log logger
           
 
Constructor Summary
CasPasswordHandler()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 boolean authenticate(javax.servlet.ServletRequest servletRequest, java.lang.String username, java.lang.String password)
          Called by CasPasswordHandlerProxy for individual authentication requests.
 org.acegisecurity.AuthenticationManager getAuthenticationManager()
           
 void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

authenticationManager

private org.acegisecurity.AuthenticationManager authenticationManager
Constructor Detail

CasPasswordHandler

public CasPasswordHandler()
Method Detail

setAuthenticationManager

public void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)

getAuthenticationManager

public org.acegisecurity.AuthenticationManager getAuthenticationManager()

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from interface: org.springframework.beans.factory.InitializingBean
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

authenticate

public boolean authenticate(javax.servlet.ServletRequest servletRequest,
                            java.lang.String username,
                            java.lang.String password)
Called by CasPasswordHandlerProxy for individual authentication requests.

Delegates to the configured AuthenticationManager.