Class HttpStatusServerAccessDeniedHandler
- java.lang.Object
-
- org.springframework.security.web.server.authorization.HttpStatusServerAccessDeniedHandler
-
- All Implemented Interfaces:
ServerAccessDeniedHandler
public class HttpStatusServerAccessDeniedHandler extends java.lang.Object implements ServerAccessDeniedHandler
Sets the provided HTTP Status when access is denied.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description HttpStatusServerAccessDeniedHandler(org.springframework.http.HttpStatus httpStatus)
Creates an instance with the provided status
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
handle(org.springframework.web.server.ServerWebExchange exchange, AccessDeniedException ex)
-
-
-
Method Detail
-
handle
public reactor.core.publisher.Mono<java.lang.Void> handle(org.springframework.web.server.ServerWebExchange exchange, AccessDeniedException ex)
- Specified by:
handle
in interfaceServerAccessDeniedHandler
-
-