org.jasig.cas.client.authentication
Interface AuthenticationRedirectStrategy

All Known Implementing Classes:
DefaultAuthenticationRedirectStrategy, FacesCompatibleAuthenticationRedirectStrategy

public interface AuthenticationRedirectStrategy

Interface to abstract the authentication strategy for redirecting. The traditional method was to always just redirect, but due to AJAX, etc. we may need to support other strategies. This interface is designed to hold that logic such that authentication filter class does not get crazily complex.

Since:
3.3.0
Author:
Scott Battaglia

Method Summary
 void redirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String potentialRedirectUrl)
          Method name is a bit of a misnomer.
 

Method Detail

redirect

void redirect(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response,
              String potentialRedirectUrl)
              throws IOException
Method name is a bit of a misnomer. This method handles "redirection" for a localized version of redirection (i.e. AJAX might mean an XML fragment that contains the url to go to).

Parameters:
request - the original HttpServletRequest. MAY NOT BE NULL.
response - the original HttpServletResponse. MAY NOT BE NULL.
potentialRedirectUrl - the url that might be used (there are no guarantees of course!)
Throws:
IOException - the exception to throw if there is some type of error. This will bubble up through the filter.


Copyright © 2006-2015 Jasig. All Rights Reserved.