Skip to content

Commit 2c8854b

Browse files
wldomicianoSteve Riesenberg
authored andcommitted
Adjusts setRequestHandler javadoc in CsrfFilter
Adjusts setRequestHandler method javadoc in CsrfFilter class to reflect changes in 6.0. In 6.0, the default CsrfTokenRequestHandler changed to XorCsrfTokenRequestAttributeHandler, however, the javadoc for the setRequestHandler method still said it was CsrfTokenRequestAttributeHandler. This change adjusts the information to make it more accurate, because, although XorCsrfTokenRequestAttributeHandler is a subclass of CsrfTokenRequestAttributeHandler, the behavior is quite different. Closes gh-12464
1 parent 5b6b3d5 commit 2c8854b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/main/java/org/springframework/security/web/csrf/CsrfFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void setAccessDeniedHandler(AccessDeniedHandler accessDeniedHandler) {
170170
* {@link CsrfToken} available as a request attribute.
171171
*
172172
* <p>
173-
* The default is {@link CsrfTokenRequestAttributeHandler}.
173+
* The default is {@link XorCsrfTokenRequestAttributeHandler}.
174174
* </p>
175175
* @param requestHandler the {@link CsrfTokenRequestHandler} to use
176176
* @since 5.8

0 commit comments

Comments
 (0)