org.acegisecurity.providers.cas.populator
Class DaoCasAuthoritiesPopulator
java.lang.Object
org.acegisecurity.providers.cas.populator.DaoCasAuthoritiesPopulator
- All Implemented Interfaces:
- CasAuthoritiesPopulator, InitializingBean
public class DaoCasAuthoritiesPopulator
- extends Object
- implements CasAuthoritiesPopulator, 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 1582 2006-07-15 15:18:51Z smccrory $
- Author:
- Ben Alex
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DaoCasAuthoritiesPopulator
public DaoCasAuthoritiesPopulator()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface 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-2006 Acegi Technology Pty Limited. All Rights Reserved.