All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.home1.oss.lib.security.internal.rest.RestfulLogoutSuccessHandler Maven / Gradle / Ivy

There is a newer version: 1.0.8.OSS
Show newest version
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