org.jasig.schedassist.web.security
Class DelegateAuthenticationSuccessHandler

java.lang.Object
  extended by org.jasig.schedassist.web.security.DelegateAuthenticationSuccessHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler

public final class DelegateAuthenticationSuccessHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler

AuthenticationSuccessHandler for the delegation login form.

Version:
$Id: DelegateAuthenticationSuccessHandler.java 2089 2010-05-03 19:04:26Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
DelegateAuthenticationSuccessHandler()
           
 
Method Summary
 void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
          Redirects to the correct url based on the GrantedAuthoritys contained by the Authentication argument.
 void setDelegateOwnerTarget(String delegateOwnerTarget)
           
 void setDelegateRegisterTarget(String delegateRegisterTarget)
           
 void setLogoutTarget(String logoutTarget)
           
 void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateAuthenticationSuccessHandler

public DelegateAuthenticationSuccessHandler()
Method Detail

setDelegateOwnerTarget

public void setDelegateOwnerTarget(String delegateOwnerTarget)
Parameters:
delegateOwnerTarget - the delegateOwnerTarget to set

setDelegateRegisterTarget

public void setDelegateRegisterTarget(String delegateRegisterTarget)
Parameters:
delegateRegisterTarget - the delegateRegisterTarget to set

setLogoutTarget

public void setLogoutTarget(String logoutTarget)
Parameters:
logoutTarget - the logoutTarget to set

setRedirectStrategy

public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
Parameters:
redirectStrategy - the redirectStrategy to set

onAuthenticationSuccess

public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    org.springframework.security.core.Authentication authentication)
                             throws IOException,
                                    javax.servlet.ServletException
Redirects to the correct url based on the GrantedAuthoritys contained by the Authentication argument.

Specified by:
onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
Throws:
IOException
javax.servlet.ServletException
See Also:
AuthenticationSuccessHandler.onAuthenticationSuccess(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.security.core.Authentication)


Copyright © 2012 Jasig. All Rights Reserved.