org.kuali.rice.kim.client.acegi
Class KualiUserDetailsServiceImpl

java.lang.Object
  extended by org.kuali.rice.kim.client.acegi.KualiUserDetailsServiceImpl
All Implemented Interfaces:
org.acegisecurity.userdetails.UserDetailsService, KualiUserDetailsService, org.springframework.beans.factory.InitializingBean

public class KualiUserDetailsServiceImpl
extends Object
implements KualiUserDetailsService, org.springframework.beans.factory.InitializingBean

Populates a UserDetails object with ticket or username and Authentication Method

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
KualiUserDetailsServiceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.acegisecurity.userdetails.UserDetails loadUserByTicketResponse(KualiTicketResponse response)
          This overridden method appends the Distributed Session Ticket to the granted authorities
 org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
          This overridden method ...
 org.acegisecurity.userdetails.UserDetails loadUserByUsernameAndAuthorities(String username, org.acegisecurity.GrantedAuthority[] authorities)
          This method is necessary for loading users by the ticket response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KualiUserDetailsServiceImpl

public KualiUserDetailsServiceImpl()
Method Detail

afterPropertiesSet

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

loadUserByTicketResponse

public org.acegisecurity.userdetails.UserDetails loadUserByTicketResponse(KualiTicketResponse response)
This overridden method appends the Distributed Session Ticket to the granted authorities

Specified by:
loadUserByTicketResponse in interface KualiUserDetailsService
Parameters:
response - the reponse from the TicketValidator presented to the DaoAuthenticationProvider
Returns:
a fully populated user record (never null)
See Also:
KualiUserDetailsService.loadUserByTicketResponse(org.kuali.rice.kim.client.acegi.KualiTicketResponse)

loadUserByUsername

public org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
This overridden method ...

Specified by:
loadUserByUsername in interface org.acegisecurity.userdetails.UserDetailsService
See Also:
UserDetailsService.loadUserByUsername(java.lang.String)

loadUserByUsernameAndAuthorities

public org.acegisecurity.userdetails.UserDetails loadUserByUsernameAndAuthorities(String username,
                                                                                  org.acegisecurity.GrantedAuthority[] authorities)
This method is necessary for loading users by the ticket response

Parameters:
username -
authorities -
Returns:
the UserDetails


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.