Class ServerHttpSecurity.ExceptionHandlingSpec
java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec
- Enclosing class:
 - ServerHttpSecurity
 
Configures exception handling
- Since:
 - 5.0
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionaccessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler) Configures what to do when an authenticated user does not hold a required authorityand()Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint) Configures what to do when the application request authentication 
- 
Method Details
- 
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.ExceptionHandlingSpecto 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.ExceptionHandlingSpecto configure - Since:
 - 5.0.5
 
 - 
and
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseServerHttpSecurity.exceptionHandling(Customizer)insteadAllows method chaining to continue configuring theServerHttpSecurity- Returns:
 - the 
ServerHttpSecurityto continue configuring 
 
 -