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.ObjectConfigures exception handling- Since:
- 5.0
- See Also:
ServerHttpSecurity.exceptionHandling()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurity.ExceptionHandlingSpecaccessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)Configures what to do when an authenticated user does not hold a required authorityServerHttpSecurityand()Allows method chaining to continue configuring theServerHttpSecurityServerHttpSecurity.ExceptionHandlingSpecauthenticationEntryPoint(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.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
public ServerHttpSecurity and()
Allows method chaining to continue configuring theServerHttpSecurity- Returns:
- the
ServerHttpSecurityto continue configuring
-
-