SEC-1148: Javadoc.

This commit is contained in:
Luke Taylor 2009-09-13 21:51:54 +00:00
parent ff78ec00f7
commit 40cf50fc98
1 changed files with 14 additions and 0 deletions

View File

@ -8,11 +8,25 @@ import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.Authentication;
/**
* <tt>AuthenticationSuccessHandler</tt> which can be configured with a default URL which users should be
* sent to upon successful authentication.
* <p>
* The logic used is that of the {@link AbstractAuthenticationTargetUrlRequestHandler parent class}.
*
* @author Luke Taylor
* @version $Id$
* @since 3.0
*/
public class SimpleUrlAuthenticationSuccessHandler extends AbstractAuthenticationTargetUrlRequestHandler implements AuthenticationSuccessHandler {
public SimpleUrlAuthenticationSuccessHandler() {
}
/**
* Constructor which sets the <tt>defaultTargetUrl</tt> property of the base class.
* @param defaultTargetUrl the URL to which the user should be redirected on successful authentication.
*/
public SimpleUrlAuthenticationSuccessHandler(String defaultTargetUrl) {
setDefaultTargetUrl(defaultTargetUrl);
}