com.healthy.security.browser.session.HealthyInvalidSessionStrategy Maven / Gradle / Ivy
package com.healthy.security.browser.session;
import com.healthy.common.security.properties.SecurityProperties;
import org.springframework.security.web.session.InvalidSessionStrategy;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* 默认的session失效处理策略
*
* @author xiaomingzhang
*/
public class HealthyInvalidSessionStrategy extends AbstractSessionStrategy implements InvalidSessionStrategy {
public HealthyInvalidSessionStrategy(SecurityProperties securityProperties) {
super(securityProperties);
}
@Override
public void onInvalidSessionDetected(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
onSessionInvalid(request, response);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy