diff --git a/core/src/main/java/org/springframework/security/ui/AbstractProcessingFilter.java b/core/src/main/java/org/springframework/security/ui/AbstractProcessingFilter.java
index edc34f06f2..797e4b1791 100644
--- a/core/src/main/java/org/springframework/security/ui/AbstractProcessingFilter.java
+++ b/core/src/main/java/org/springframework/security/ui/AbstractProcessingFilter.java
@@ -77,10 +77,12 @@ import javax.servlet.http.HttpSession;
* defaultTargetUrl
will be treated as relative to the web-app's
* context path, and should include the leading /
.
* Alternatively, inclusion of a scheme name (eg http:// or https://) as the
- * prefix will denote a fully-qualified URL and this is also supported.
- *
authenticationFailureUrl
indicates the URL that should be
+ * prefix will denote a fully-qualified URL and this is also supported. More
+ * complex behaviour can be implemented by using a customised {@link TargetUrlResolver}.authenticationFailureUrl
(optional) indicates the URL that should be
* used for redirection if the authentication request fails. eg:
- * /login.jsp?login_error=1
./login.jsp?login_error=1
. If not configured, sendError will be
+ * called on the response, with the error code SC_UNAUTHORIZED.
* filterProcessesUrl
indicates the URL that this filter
* will respond to. This parameter varies by subclass.alwaysUseDefaultTargetUrl
causes successful