Skip to content

Commit 27b3f4d

Browse files
wldomicianojzheaux
authored andcommitted
Adjusts setRequestHandler javadoc in CsrfWebFilter
Adjusts setRequestHandler method javadoc in CsrfWebFilter class to reflect changes in 6.0. In 6.0, the default ServerCsrfTokenRequestHandler changed to XorServerCsrfTokenRequestAttributeHandler, however, the javadoc for the setRequestHandler method still said it was ServerCsrfTokenRequestAttributeHandler. This change adjusts the information to make it more accurate, because, although XorServerCsrfTokenRequestAttributeHandler is a subclass of ServerCsrfTokenRequestAttributeHandler, the behavior is quite different. Closes gh-12465
1 parent 9c0a35a commit 27b3f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/main/java/org/springframework/security/web/server/csrf/CsrfWebFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void setRequireCsrfProtectionMatcher(ServerWebExchangeMatcher requireCsrf
104104
* Specifies a {@link ServerCsrfTokenRequestHandler} that is used to make the
105105
* {@code CsrfToken} available as an exchange attribute.
106106
* <p>
107-
* The default is {@link ServerCsrfTokenRequestAttributeHandler}.
107+
* The default is {@link XorServerCsrfTokenRequestAttributeHandler}.
108108
* @param requestHandler the {@link ServerCsrfTokenRequestHandler} to use
109109
* @since 5.8
110110
*/

0 commit comments

Comments
 (0)