mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-05 18:22:26 +00:00
Some formatting fixes for HttpSecurity Javadoc
This commit is contained in:
parent
2f4610e8b7
commit
be36ddb614
@ -1051,13 +1051,21 @@ public final class HttpSecurity extends
|
|||||||
*
|
*
|
||||||
* @Override
|
* @Override
|
||||||
* protected void configure(HttpSecurity http) throws Exception {
|
* protected void configure(HttpSecurity http) throws Exception {
|
||||||
* http.requestMatchers().antMatchers("/api/**", "/oauth/**").and()
|
* http
|
||||||
* .authorizeRequests().antMatchers("/**").hasRole("USER").and().httpBasic();
|
* .requestMatchers()
|
||||||
|
* .antMatchers("/api/**", "/oauth/**")
|
||||||
|
* .and()
|
||||||
|
* .authorizeRequests()
|
||||||
|
* .antMatchers("/**").hasRole("USER")
|
||||||
|
* .and()
|
||||||
|
* .httpBasic();
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @Override
|
* @Override
|
||||||
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||||
* auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
|
* auth
|
||||||
|
* .inMemoryAuthentication()
|
||||||
|
* .withUser("user").password("password").roles("USER");
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
@ -1071,13 +1079,22 @@ public final class HttpSecurity extends
|
|||||||
*
|
*
|
||||||
* @Override
|
* @Override
|
||||||
* protected void configure(HttpSecurity http) throws Exception {
|
* protected void configure(HttpSecurity http) throws Exception {
|
||||||
* http.requestMatchers().antMatchers("/api/**").antMatchers("/oauth/**").and()
|
* http
|
||||||
* .authorizeRequests().antMatchers("/**").hasRole("USER").and().httpBasic();
|
* .requestMatchers()
|
||||||
|
* .antMatchers("/api/**")
|
||||||
|
* .antMatchers("/oauth/**")
|
||||||
|
* .and()
|
||||||
|
* .authorizeRequests()
|
||||||
|
* .antMatchers("/**").hasRole("USER")
|
||||||
|
* .and()
|
||||||
|
* .httpBasic();
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @Override
|
* @Override
|
||||||
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||||
* auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
|
* auth
|
||||||
|
* .inMemoryAuthentication()
|
||||||
|
* .withUser("user").password("password").roles("USER");
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
@ -1091,14 +1108,24 @@ public final class HttpSecurity extends
|
|||||||
*
|
*
|
||||||
* @Override
|
* @Override
|
||||||
* protected void configure(HttpSecurity http) throws Exception {
|
* protected void configure(HttpSecurity http) throws Exception {
|
||||||
* http.requestMatchers().antMatchers("/api/**").and().requestMatchers()
|
* http
|
||||||
* .antMatchers("/oauth/**").and().authorizeRequests().antMatchers("/**")
|
* .requestMatchers()
|
||||||
* .hasRole("USER").and().httpBasic();
|
* .antMatchers("/api/**")
|
||||||
|
* .and()
|
||||||
|
* .requestMatchers()
|
||||||
|
* .antMatchers("/oauth/**")
|
||||||
|
* .and()
|
||||||
|
* .authorizeRequests()
|
||||||
|
* .antMatchers("/**").hasRole("USER")
|
||||||
|
* .and()
|
||||||
|
* .httpBasic();
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @Override
|
* @Override
|
||||||
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
* protected void configure(AuthenticationManagerBuilder auth) throws Exception {
|
||||||
* auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
|
* auth
|
||||||
|
* .inMemoryAuthentication()
|
||||||
|
* .withUser("user").password("password").roles("USER");
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user