public class DaoCasAuthoritiesPopulator extends Object implements CasAuthoritiesPopulator, org.springframework.beans.factory.InitializingBean
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.
Constructor and Description |
---|
DaoCasAuthoritiesPopulator() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
UserDetails |
getUserDetails(String casUserId)
Obtains the granted authorities for the specified user.
|
UserDetailsService |
getUserDetailsService() |
void |
setUserDetailsService(UserDetailsService userDetailsService) |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public UserDetails getUserDetails(String casUserId) throws AuthenticationException
CasAuthoritiesPopulator
May throw any
AuthenticationException
or return null
if the authorities are unavailable.
getUserDetails
in interface CasAuthoritiesPopulator
casUserId
- as obtained from the CAS validation serviceAuthenticationException
- DOCUMENT ME!public UserDetailsService getUserDetailsService()
public void setUserDetailsService(UserDetailsService userDetailsService)
Copyright © 2016. All rights reserved.