Class ServerHttpSecurity.ExceptionHandlingSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec
-
- Enclosing class:
- ServerHttpSecurity
public final class ServerHttpSecurity.ExceptionHandlingSpec extends java.lang.Object
Configures exception handling- Since:
- 5.0
- See Also:
ServerHttpSecurity.exceptionHandling()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurity.ExceptionHandlingSpec
accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
Configures what to do when an authenticated user does not hold a required authorityServerHttpSecurity
and()
Allows method chaining to continue configuring theServerHttpSecurity
ServerHttpSecurity.ExceptionHandlingSpec
authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
Configures what to do when the application request authentication
-
-
-
Method Detail
-
authenticationEntryPoint
public ServerHttpSecurity.ExceptionHandlingSpec authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
Configures what to do when the application request authentication- Parameters:
authenticationEntryPoint
- the entry point to use- Returns:
- the
ServerHttpSecurity.ExceptionHandlingSpec
to configure
-
accessDeniedHandler
public ServerHttpSecurity.ExceptionHandlingSpec accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
Configures what to do when an authenticated user does not hold a required authority- Parameters:
accessDeniedHandler
- the access denied handler to use- Returns:
- the
ServerHttpSecurity.ExceptionHandlingSpec
to configure - Since:
- 5.0.5
-
and
public ServerHttpSecurity and()
Allows method chaining to continue configuring theServerHttpSecurity
- Returns:
- the
ServerHttpSecurity
to continue configuring
-
-