Class HttpStatusReturningServerLogoutSuccessHandler

java.lang.Object
org.springframework.security.web.server.authentication.logout.HttpStatusReturningServerLogoutSuccessHandler
All Implemented Interfaces:
ServerLogoutSuccessHandler

public class HttpStatusReturningServerLogoutSuccessHandler extends Object implements ServerLogoutSuccessHandler
Implementation of the ServerLogoutSuccessHandler. By default returns an HTTP status code of 200. This is useful in REST-type scenarios where a redirect upon a successful logout is not desired.
Since:
5.1
  • Constructor Details

    • HttpStatusReturningServerLogoutSuccessHandler

      public HttpStatusReturningServerLogoutSuccessHandler(org.springframework.http.HttpStatus httpStatusToReturn)
      Initialize the HttpStatusReturningServerLogoutSuccessHandler with a user-defined HttpStatus.
      Parameters:
      httpStatusToReturn - Must not be null.
    • HttpStatusReturningServerLogoutSuccessHandler

      public HttpStatusReturningServerLogoutSuccessHandler()
      Initialize the HttpStatusReturningServerLogoutSuccessHandler with the default HttpStatus.OK.
  • Method Details