Class ExceptionTranslationWebFilter
- java.lang.Object
-
- org.springframework.security.web.server.authorization.ExceptionTranslationWebFilter
-
- All Implemented Interfaces:
org.springframework.web.server.WebFilter
public class ExceptionTranslationWebFilter extends java.lang.Object implements org.springframework.web.server.WebFilter
- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description ExceptionTranslationWebFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
void
setAccessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
Sets the access denied handler.void
setAuthenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
Sets the authentication entry point used when authentication is required
-
-
-
Method Detail
-
filter
public reactor.core.publisher.Mono<java.lang.Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
- Specified by:
filter
in interfaceorg.springframework.web.server.WebFilter
-
setAccessDeniedHandler
public void setAccessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
Sets the access denied handler.- Parameters:
accessDeniedHandler
- the access denied handler to use. Default is HttpStatusAccessDeniedHandler with HttpStatus.FORBIDDEN
-
setAuthenticationEntryPoint
public void setAuthenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint)
Sets the authentication entry point used when authentication is required- Parameters:
authenticationEntryPoint
- the authentication entry point to use. Default isHttpBasicServerAuthenticationEntryPoint
-
-