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 SummaryModifier and TypeMethodDescriptionaccessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler) Configures what to do when an authenticated user does not hold a required authorityand()Allows method chaining to continue configuring theServerHttpSecurityauthenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint) Configures what to do when the application request authentication
- 
Method Details- 
authenticationEntryPointpublic 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
 
- 
accessDeniedHandlerpublic 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
 
- 
andAllows method chaining to continue configuring theServerHttpSecurity- Returns:
- the ServerHttpSecurityto continue configuring
 
 
-