cn.home1.oss.lib.security.internal.rest.RestfulLogoutSuccessHandler Maven / Gradle / Ivy
package cn.home1.oss.lib.security.internal.rest;
import static org.springframework.http.HttpStatus.OK;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* see: {@link org.springframework.security.web.authentication.logout.LogoutFilter}.
*
* Created by zhanghaolun on 16/7/12.
*/
public class RestfulLogoutSuccessHandler implements LogoutSuccessHandler {
public void onLogoutSuccess(final HttpServletRequest request, final HttpServletResponse response,
final Authentication authentication) throws IOException, ServletException {
response.setStatus(OK.value());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy