Class HttpStatusReturningLogoutSuccessHandler

java.lang.Object
org.springframework.security.web.authentication.logout.HttpStatusReturningLogoutSuccessHandler
All Implemented Interfaces:
LogoutSuccessHandler

public class HttpStatusReturningLogoutSuccessHandler extends Object implements LogoutSuccessHandler
Implementation of the LogoutSuccessHandler. 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:
4.0.2
  • Constructor Details

    • HttpStatusReturningLogoutSuccessHandler

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

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