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

java.lang.Object
  extended by org.kuali.rice.kim.client.acegi.KualiCasAuthoritiesPopulatorImpl
All Implemented Interfaces:
org.acegisecurity.providers.cas.CasAuthoritiesPopulator, KualiCasAuthoritiesPopulator

public class KualiCasAuthoritiesPopulatorImpl
extends Object
implements KualiCasAuthoritiesPopulator

Populates the UserDetails associated with a CAS authenticated user by reading the response. This is required to pass the Distributed Session Ticket around.

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

Constructor Summary
KualiCasAuthoritiesPopulatorImpl()
           
 
Method Summary
 void afterPropertiesSet()
          This method validates the Spring configuration
 org.acegisecurity.userdetails.UserDetails getUserDetails(KualiTicketResponse response)
          This overridden method is used to pass the Distributed Session Ticket around via the KualiTicketResponse
 org.acegisecurity.userdetails.UserDetails getUserDetails(String casUserId)
          This overridden method should never be used but is required by the UserDetails interface
 void setUserDetailsService(org.acegisecurity.userdetails.UserDetailsService userDetailsService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KualiCasAuthoritiesPopulatorImpl

public KualiCasAuthoritiesPopulatorImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
This method validates the Spring configuration

Throws:
Exception

setUserDetailsService

public void setUserDetailsService(org.acegisecurity.userdetails.UserDetailsService userDetailsService)
Parameters:
userDetailsService - the UserDetailsService to set

getUserDetails

public org.acegisecurity.userdetails.UserDetails getUserDetails(String casUserId)
                                                         throws org.acegisecurity.AuthenticationException
This overridden method should never be used but is required by the UserDetails interface

Specified by:
getUserDetails in interface org.acegisecurity.providers.cas.CasAuthoritiesPopulator
Throws:
org.acegisecurity.AuthenticationException
See Also:
CasAuthoritiesPopulator.getUserDetails(java.lang.String)

getUserDetails

public org.acegisecurity.userdetails.UserDetails getUserDetails(KualiTicketResponse response)
                                                         throws org.acegisecurity.AuthenticationException
This overridden method is used to pass the Distributed Session Ticket around via the KualiTicketResponse

Specified by:
getUserDetails in interface KualiCasAuthoritiesPopulator
Returns:
the details of the indicated user (at minimum the granted authorities and the username)
Throws:
org.acegisecurity.AuthenticationException - DOCUMENT ME!
See Also:
KualiCasAuthoritiesPopulator.getUserDetails(org.kuali.rice.kim.client.acegi.KualiTicketResponse)


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