java.lang.Object
org.acegisecurity.providers.cas.populator.DaoCasAuthoritiesPopulator
- All Implemented Interfaces:
- org.acegisecurity.providers.cas.CasAuthoritiesPopulator, org.springframework.beans.factory.InitializingBean
- public class DaoCasAuthoritiesPopulator
- extends java.lang.Object
- implements org.acegisecurity.providers.cas.CasAuthoritiesPopulator, org.springframework.beans.factory.InitializingBean
Populates the CAS authorities via an org.acegisecurity.userdetails.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,v 1.6 2005/11/30 00:20:12 benalex Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userDetailsService
private org.acegisecurity.userdetails.UserDetailsService userDetailsService
DaoCasAuthoritiesPopulator
public DaoCasAuthoritiesPopulator()
setUserDetailsService
public void setUserDetailsService(org.acegisecurity.userdetails.UserDetailsService authenticationDao)
getUserDetailsService
public org.acegisecurity.userdetails.UserDetailsService getUserDetailsService()
getUserDetails
public org.acegisecurity.userdetails.UserDetails getUserDetails(java.lang.String casUserId)
throws org.acegisecurity.AuthenticationException
- Description copied from interface:
org.acegisecurity.providers.cas.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 org.acegisecurity.providers.cas.CasAuthoritiesPopulator
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