org.acegisecurity.providers.cas.populator
Class DaoCasAuthoritiesPopulator

java.lang.Object
  extended by org.acegisecurity.providers.cas.populator.DaoCasAuthoritiesPopulator
All Implemented Interfaces:
CasAuthoritiesPopulator, org.springframework.beans.factory.InitializingBean

public class DaoCasAuthoritiesPopulator
extends Object
implements CasAuthoritiesPopulator, org.springframework.beans.factory.InitializingBean

Populates the CAS authorities via an UserDetailsService.

The additional information (username, password, enabled status etc) an AuthenticationDao implementation provides about a User is ignored. Only the GrantedAuthoritys are relevant to this class.

Version:
$Id: DaoCasAuthoritiesPopulator.java 1821 2007-05-17 03:18:35Z raykrueger $
Author:
Ben Alex

Constructor Summary
DaoCasAuthoritiesPopulator()
           
 
Method Summary
 void afterPropertiesSet()
           
 UserDetails getUserDetails(String casUserId)
          Obtains the granted authorities for the specified user.
 UserDetailsService getUserDetailsService()
           
 void setUserDetailsService(UserDetailsService userDetailsService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoCasAuthoritiesPopulator

public DaoCasAuthoritiesPopulator()
Method Detail

afterPropertiesSet

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

getUserDetails

public UserDetails getUserDetails(String casUserId)
                           throws AuthenticationException
Description copied from interface: CasAuthoritiesPopulator
Obtains the granted authorities for the specified user.

May throw any AuthenticationException or return null if the authorities are unavailable.

Specified by:
getUserDetails in interface CasAuthoritiesPopulator
Parameters:
casUserId - as obtained from the CAS validation service
Returns:
the details of the indicated user (at minimum the granted authorities and the username)
Throws:
AuthenticationException - DOCUMENT ME!

getUserDetailsService

public UserDetailsService getUserDetailsService()

setUserDetailsService

public void setUserDetailsService(UserDetailsService userDetailsService)


Copyright © 2004-2009 Interface21, Inc. All Rights Reserved.