top.cutexingluo.tools.security.exception.XTAuthenticationEntryPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xingtools-pkg-jdk8 Show documentation
Show all versions of xingtools-pkg-jdk8 Show documentation
xingtools 依赖core包,jdk 分类包,对不同的jdk版本提供兼容性
The newest version!
package top.cutexingluo.tools.security.exception;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import top.cutexingluo.tools.common.Constants;
import top.cutexingluo.tools.common.Result;
import top.cutexingluo.tools.common.base.IResult;
import top.cutexingluo.tools.utils.ee.web.front.WebUtils;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* XT 认证异常拦截默认封装为 Result
*
* SpringSecurity 认证端点
* 需要导入 spring-security
*
* @author XingTian
* @version 1.0.1
* @date 2023/6/17 18:58
* @updateFrom 1.0.3
*/
public class XTAuthenticationEntryPoint implements AuthenticationEntryPoint {
/**
* returnResultSource 包装类
* 自定义返回值
*
* @since 1.0.3
*/
IResult
© 2015 - 2024 Weber Informatics LLC | Privacy Policy