Class LogoutSuccessHandlerReturningOkHttpStatusCode

  • All Implemented Interfaces:
    org.springframework.security.web.authentication.logout.LogoutSuccessHandler

    public class LogoutSuccessHandlerReturningOkHttpStatusCode
    extends Object
    implements org.springframework.security.web.authentication.logout.LogoutSuccessHandler
    Sends the OK status code upon successful logout.
    See Also:
    JsonUsernamePasswordAuthenticationFilter
    • Constructor Detail

      • LogoutSuccessHandlerReturningOkHttpStatusCode

        public LogoutSuccessHandlerReturningOkHttpStatusCode()
    • Method Detail

      • onLogoutSuccess

        public void onLogoutSuccess​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    org.springframework.security.core.Authentication authentication)
                             throws IOException,
                                    javax.servlet.ServletException
        Called after a successful logout by the JsonUsernamePasswordAuthenticationFilter.
        Specified by:
        onLogoutSuccess in interface org.springframework.security.web.authentication.logout.LogoutSuccessHandler
        Throws:
        IOException
        javax.servlet.ServletException