org.acegisecurity.providers.cas.populator
Class DaoCasAuthoritiesPopulator
java.lang.Object
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 GrantedAuthority
s are relevant to this class.
- Version:
- $Id: DaoCasAuthoritiesPopulator.java 1821 2007-05-17 03:18:35Z raykrueger $
- 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 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-2011 Interface21, Inc. All Rights Reserved.