Skip to content

Commit 9c76f54

Browse files
committed
Polish WebSecurityConfigurerAdapter JavaDoc
Issue gh-8784
1 parent 14e4a81 commit 9c76f54

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,10 @@ public void run() {
326326
* Override this method to configure {@link WebSecurity}. For example, if you wish to
327327
* ignore certain requests.
328328
*
329-
* Endpoint used in this method ignores the
330-
* spring security filters, headers, csrf etc. see
331-
* {@link org.springframework.security.config.annotation.web.configurers.HeadersConfigurer} and
332-
* {@link org.springframework.security.config.annotation.web.configurers.CsrfConfigurer }
329+
* Endpoints specified in this method will be ignored by Spring Security, meaning it
330+
* will not protect them from CSRF, XSS, Clickjacking, and so on.
333331
*
334-
* Instead, if you want to protect public endpoints against common vulnerabilities, then see
332+
* Instead, if you want to protect endpoints against common vulnerabilities, then see
335333
* {@link #configure(HttpSecurity)} and the {@link HttpSecurity#authorizeRequests}
336334
* configuration method.
337335
*/
@@ -347,9 +345,9 @@ public void configure(WebSecurity web) throws Exception {
347345
* http.authorizeRequests().anyRequest().authenticated().and().formLogin().and().httpBasic();
348346
* </pre>
349347
*
350-
* Public endpoints that require defense against common vulnerabilities can be specified here.
348+
* Any endpoint that requires defense against common vulnerabilities can be specified here, including public ones.
351349
* See {@link HttpSecurity#authorizeRequests} and the `permitAll()` authorization rule
352-
* for more details.
350+
* for more details on public endpoints.
353351
*
354352
* @param http the {@link HttpSecurity} to modify
355353
* @throws Exception if an error occurs

0 commit comments

Comments
 (0)