public final class ServerHttpSecurity.ExceptionHandlingSpec
extends java.lang.Object
ServerHttpSecurity.exceptionHandling()| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity.ExceptionHandlingSpec |
accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
Configures what to do when an authenticated user does not hold a required
authority
|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
ServerHttpSecurity.ExceptionHandlingSpec |
authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
Configures what to do when the application request authentication
|
public ServerHttpSecurity.ExceptionHandlingSpec authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
authenticationEntryPoint - the entry point to useServerHttpSecurity.ExceptionHandlingSpec to configurepublic ServerHttpSecurity.ExceptionHandlingSpec accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
accessDeniedHandler - the access denied handler to useServerHttpSecurity.ExceptionHandlingSpec to configurepublic ServerHttpSecurity and()
ServerHttpSecurityServerHttpSecurity to continue configuring