mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-11-30 02:48:10 +08:00
!252 将since后面的内容统一修改为对应类创建时的版本号
Merge pull request !252 from AppleOfGray/dev
This commit is contained in:
commit
66492575ac
@ -46,7 +46,7 @@ import java.util.Map;
|
||||
* 管理 Sa-Token 所有全局组件,可通过此类快速获取、写入各种全局组件对象
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.18.0
|
||||
*/
|
||||
public class SaManager {
|
||||
|
||||
|
@ -28,7 +28,7 @@ import java.lang.annotation.Target;
|
||||
* <p> 可标注在方法、类上(效果等同于标注在此类的所有方法上)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.26.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
||||
|
@ -28,7 +28,7 @@ import java.lang.annotation.Target;
|
||||
* <p> 可标注在方法、类上(效果等同于标注在此类的所有方法上)
|
||||
*
|
||||
* @author videomonster
|
||||
* @since <= 1.34.0
|
||||
* @since 1.31.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
||||
|
@ -26,7 +26,7 @@ import java.lang.annotation.Target;
|
||||
* <p> 可标注在方法、类上(效果等同于标注在此类的所有方法上)
|
||||
*
|
||||
* @author kong
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
||||
|
@ -26,7 +26,7 @@ import java.lang.annotation.Target;
|
||||
* <p> 可标注在方法、类上(效果等同于标注在此类的所有方法上)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD,ElementType.TYPE})
|
||||
|
@ -26,7 +26,7 @@ import java.lang.annotation.Target;
|
||||
* <p> 可标注在方法、类上(效果等同于标注在此类的所有方法上)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD,ElementType.TYPE})
|
||||
|
@ -28,7 +28,7 @@ import cn.dev33.satoken.util.SaTokenConsts;
|
||||
* <p> 可标注在方法、类上(效果等同于标注在此类的所有方法上)。
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.21.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
||||
|
@ -26,7 +26,7 @@ import java.lang.annotation.Target;
|
||||
* <h3> 请注意:此注解的忽略效果只针对 SaInterceptor拦截器 和 AOP注解鉴权 生效,对自定义拦截器与过滤器不生效。 </h3>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.31.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.annotation;
|
||||
* 注解鉴权的验证模式
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public enum SaMode {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import cn.dev33.satoken.dao.SaTokenDao;
|
||||
* <p> 在应用全局范围内: 存值、取值。数据在应用重启后失效,如果集成了 Redis,则在 Redis 重启后失效。
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-8-17
|
||||
* @since 1.31.0
|
||||
*/
|
||||
public class SaApplication implements SaSetValueInterface {
|
||||
|
||||
|
@ -22,7 +22,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* <p> 封装 SaStorage、SaSession、SaApplication 等存取值的一些固定方法,减少重复编码 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-8-16
|
||||
* @since 1.31.0
|
||||
*/
|
||||
public interface SaGetValueInterface {
|
||||
|
||||
|
@ -22,7 +22,7 @@ import cn.dev33.satoken.fun.SaRetFunction;
|
||||
* <p> 封装 SaStorage、SaSession、SaApplication 等存取值的一些固定方法,减少重复编码 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-8-17
|
||||
* @since 1.31.0
|
||||
*/
|
||||
public interface SaSetValueInterface extends SaGetValueInterface {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* Sa-Token Http Basic 认证模块
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.26.0
|
||||
*/
|
||||
public class SaBasicTemplate {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.basic;
|
||||
* Sa-Token Http Basic 认证模块,Util 工具类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.26.0
|
||||
*/
|
||||
public class SaBasicUtil {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.config;
|
||||
* Sa-Token Cookie写入 相关配置
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
public class SaCookieConfig {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.config;
|
||||
* Sa-Token API 接口签名/验签 相关配置类
|
||||
*
|
||||
* @author click33
|
||||
* @since 2023/5/2
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaSignConfig {
|
||||
|
||||
|
@ -28,7 +28,7 @@ import java.io.Serializable;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class SaTokenConfig implements Serializable {
|
||||
|
||||
|
@ -32,7 +32,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* <p> 用于手动读取配置文件初始化 SaTokenConfig 对象,只有在非IOC环境下你才会用到此类 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-30
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class SaTokenConfigFactory {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import cn.dev33.satoken.context.model.SaStorage;
|
||||
* Sa-Token 上下文持有类,你可以通过此类快速获取当前环境下的 SaRequest、SaResponse、SaStorage、SaApplication 对象。
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.18.0
|
||||
*/
|
||||
public class SaHolder {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import cn.dev33.satoken.context.model.SaResponse;
|
||||
* <p> 上下文处理器封装了当前应用环境的底层操作,是 Sa-Token 对接不同 web 框架的关键,详细可参考在线文档 “自定义 SaTokenContext 指南”章节 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public interface SaTokenContext {
|
||||
|
||||
|
@ -30,7 +30,7 @@ import cn.dev33.satoken.exception.InvalidContextException;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public class SaTokenContextDefaultImpl implements SaTokenContext {
|
||||
|
||||
|
@ -30,7 +30,7 @@ import cn.dev33.satoken.context.model.SaStorage;
|
||||
* <p> 一般情况下你不需要直接操作此类,因为框架的 starter 集成包里已经封装了完整的上下文操作 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public class SaTokenContextForThreadLocal implements SaTokenContext {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import cn.dev33.satoken.exception.InvalidContextException;
|
||||
* <p> 一般情况下你不需要直接操作此类,因为框架的 starter 集成包里已经封装了完整的上下文操作 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public class SaTokenContextForThreadLocalStorage {
|
||||
|
||||
@ -106,7 +106,7 @@ public class SaTokenContextForThreadLocalStorage {
|
||||
* Box 临时内部类,用于存储 [ SaRequest、SaResponse、SaStorage ] 三个包装对象
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public static class Box {
|
||||
|
||||
|
@ -28,7 +28,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* Cookie Model,代表一个 Cookie 应该具有的所有参数
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public class SaCookie {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import java.util.Map;
|
||||
* Request 请求对象 包装类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public interface SaRequest {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.context.model;
|
||||
* Response 响应对象 包装类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public interface SaResponse {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import cn.dev33.satoken.application.SaSetValueInterface;
|
||||
* <p> 在一次请求范围内: 存值、取值。数据在请求结束后失效。
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
public interface SaStorage extends SaSetValueInterface {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import cn.dev33.satoken.context.SaTokenContext;
|
||||
* @see SaTokenContext SaTokenContext 上下文处理器
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.28.0
|
||||
*/
|
||||
public interface SaTokenSecondContext extends SaTokenContext {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.context.second;
|
||||
* Sa-Token 二级Context - 创建器
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.28.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaTokenSecondContextCreator {
|
||||
|
@ -28,7 +28,7 @@ import java.util.List;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public interface SaTokenDao {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
* Sa-Token 持久层接口,默认实现类(基于内存 Map,系统重启后数据丢失)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class SaTokenDaoDefaultImpl implements SaTokenDao {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.error;
|
||||
* 定义所有异常细分状态码
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-30
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public interface SaErrorCode {
|
||||
|
||||
|
@ -21,7 +21,7 @@ package cn.dev33.satoken.exception;
|
||||
* <p> 一般在 API 不合适调用的时候抛出,例如在集成 jwt 模块后调用数据持久化相关方法 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.28.0
|
||||
*/
|
||||
public class ApiDisabledException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表停止匹配,直接退出,向前端输出结果 (框架内部专属异常,一般情况下开发者无需关注)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.21.0
|
||||
*/
|
||||
public class BackResultException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表指定账号的指定服务已被封禁
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.31.0
|
||||
*/
|
||||
public class DisableServiceException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表框架未能获取有效的上下文
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-29
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public class InvalidContextException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表会话未能通过 Http Basic 认证校验
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-29
|
||||
* @since 1.26.0
|
||||
*/
|
||||
public class NotBasicAuthException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表组件或方法未被提供有效的实现
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-30
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public class NotImplException extends SaTokenException {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.List;
|
||||
* 一个异常:代表会话未能通过登录认证校验
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class NotLoginException extends SaTokenException {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
||||
* 一个异常:代表会话未能通过权限认证校验
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class NotPermissionException extends SaTokenException {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
||||
* 一个异常:代表会话未能通过角色认证校验
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class NotRoleException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表会话未能通过二级认证校验
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.21.0
|
||||
*/
|
||||
public class NotSafeException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表当前不是 Web 上下文,无法调用某个 API
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-29
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public class NotWebContextException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表 JSON 转换失败
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.30.0
|
||||
*/
|
||||
public class SaJsonConvertException extends SaTokenException {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* 一个异常:代表 API 参数签名校验失败
|
||||
*
|
||||
* @author click33
|
||||
* @since 2023-5-3
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaSignException extends SaTokenException {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* <p> 框架其它异常均继承自此类,开发者可通过捕获此异常来捕获框架内部抛出的所有异常 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class SaTokenException extends RuntimeException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表 Same-Token 校验未通过
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-24
|
||||
* @since 1.32.0
|
||||
*/
|
||||
public class SameTokenInvalidException extends SaTokenException {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.exception;
|
||||
* 一个异常:代表停止路由匹配,进入 Controller (框架内部专属异常,一般情况下开发者无需关注)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.20.0
|
||||
*/
|
||||
public class StopMatchException extends SaTokenException {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import java.util.List;
|
||||
* 2、定义统一的行为接口。
|
||||
*
|
||||
* @author click33
|
||||
* @since 2023/4/29
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public interface SaFilter {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.filter;
|
||||
* Sa-Token 全局过滤器 - 认证策略封装,方便 lambda 表达式风格调用
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.17.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaFilterAuthStrategy {
|
||||
|
@ -21,7 +21,7 @@ package cn.dev33.satoken.filter;
|
||||
* <p> 此方法的返回值将在 toString() 后返回给前端,如果你要返回 JSON 数据,需要在返回前自行序列化为 JSON 字符串 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.16.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaFilterErrorStrategy {
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.fun;
|
||||
* lambda 表达式辅助封装:根据 Boolean 变量,决定是否执行一个函数
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.13.0
|
||||
*/
|
||||
public class IsRunFunction {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.fun;
|
||||
* 无形参、无返回值的函数式接口,方便开发者进行 lambda 表达式风格调用
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.13.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaFunction {
|
||||
|
@ -22,7 +22,7 @@ import java.util.function.Supplier;
|
||||
* 生成唯一式 token 的函数式接口,方便开发者进行 lambda 表达式风格调用
|
||||
*
|
||||
* @author click33
|
||||
* @since 2023/4/30
|
||||
* @since 1.34.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaGenerateUniqueTokenFunction {
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.fun;
|
||||
* 单形参、无返回值的函数式接口,方便开发者进行 lambda 表达式风格调用
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaParamFunction<T> {
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.fun;
|
||||
* 单形参、有返回值的函数式接口,方便开发者进行 lambda 表达式风格调用
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaParamRetFunction<T, R> {
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.fun;
|
||||
* 无形参、有返回值的函数式接口,方便开发者进行 lambda 表达式风格调用
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.20.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaRetFunction {
|
||||
|
@ -22,7 +22,7 @@ import cn.dev33.satoken.context.model.SaResponse;
|
||||
* 路由拦截器验证方法的函数式接口,方便开发者进行 lambda 表达式风格调用
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SaRouteFunction {
|
||||
|
@ -21,7 +21,7 @@ import java.util.Map;
|
||||
* JSON 转换器
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.30.0
|
||||
*/
|
||||
public interface SaJsonTemplate {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import cn.dev33.satoken.exception.NotImplException;
|
||||
* <p> 如果代码断点走到了此默认实现类,说明框架没有注入有效的 JSON 转换器,需要开发者自行实现并注入 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.30.0
|
||||
*/
|
||||
public class SaJsonTemplateDefaultImpl implements SaJsonTemplate {
|
||||
|
||||
|
@ -30,7 +30,7 @@ import cn.dev33.satoken.stp.StpLogic;
|
||||
* <p> 提供侦听器注册、事件发布能力 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-8-19
|
||||
* @since 1.31.0
|
||||
*/
|
||||
public class SaTokenEventCenter {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import cn.dev33.satoken.stp.StpLogic;
|
||||
* <p> 你可以通过实现此接口在用户登录、退出等关键性操作时进行一些AOP切面操作 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.17.0
|
||||
*/
|
||||
public interface SaTokenListener {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* Sa-Token 侦听器的一个实现:Log 打印
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-11-2
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public class SaTokenListenerForLog implements SaTokenListener {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import cn.dev33.satoken.stp.SaLoginModel;
|
||||
* <p> 对所有事件方法提供空实现,方便开发者通过继承此类快速实现一个可用的侦听器 </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-8-20
|
||||
* @since 1.31.0
|
||||
*/
|
||||
public class SaTokenListenerForSimple implements SaTokenListener {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.log;
|
||||
* Sa-Token 日志输出接口
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-11-1
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public interface SaLog {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import cn.dev33.satoken.util.StrFormatter;
|
||||
* Sa-Token 日志实现类 [ 控制台打印 ]
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-11-1
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public class SaLogForConsole implements SaLog {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import cn.dev33.satoken.exception.SaTokenException;
|
||||
* <p> 参考:Spring - HttpMethod
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
public enum SaHttpMethod {
|
||||
|
||||
|
@ -39,7 +39,7 @@ import cn.dev33.satoken.fun.SaParamRetFunction;
|
||||
* </pre>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
public class SaRouter {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import cn.dev33.satoken.fun.SaParamRetFunction;
|
||||
* 路由匹配操作对象
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
public class SaRouterStaff {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* <p> 解决同源系统互相调用时的身份认证校验, 例如:微服务网关请求转发鉴权、微服务RPC调用鉴权
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-24
|
||||
* @since 1.32.0
|
||||
*/
|
||||
public class SaSameTemplate {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import cn.dev33.satoken.SaManager;
|
||||
* <p> 解决同源系统互相调用时的身份认证校验, 例如:微服务网关请求转发鉴权、微服务RPC调用鉴权
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-10-24
|
||||
* @since 1.32.0
|
||||
*/
|
||||
public class SaSameUtil {
|
||||
|
||||
|
@ -44,7 +44,7 @@ import java.security.SecureRandom;
|
||||
* }
|
||||
*
|
||||
* @author Damien Miller
|
||||
* @since 4.1.1
|
||||
* @since 1.29.0
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public class BCrypt {
|
||||
|
@ -22,7 +22,7 @@ import java.util.Base64;
|
||||
* Sa-Token Base64 工具类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.14.0
|
||||
*/
|
||||
public class SaBase64Util {
|
||||
|
||||
|
@ -37,7 +37,7 @@ import java.util.UUID;
|
||||
* Sa-Token 常见加密算法工具类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.14.0
|
||||
*/
|
||||
public class SaSecureUtil {
|
||||
|
||||
|
@ -43,7 +43,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class SaSession implements SaSetValueInterface, Serializable {
|
||||
|
||||
|
@ -35,7 +35,7 @@ import cn.dev33.satoken.util.SaTokenConsts;
|
||||
* </pre>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class SaSessionCustomUtil {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import java.io.Serializable;
|
||||
* <p> 挂在到 SaSession 上的 Token 签名,一般情况下,一个 TokenSign 代表一个登录的会话。</p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.8.0
|
||||
*/
|
||||
public class TokenSign implements Serializable {
|
||||
|
||||
|
@ -38,7 +38,7 @@ import java.util.TreeMap;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-4-27
|
||||
* @since 1.30.0
|
||||
*/
|
||||
public class SaSignTemplate {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.Map;
|
||||
* API 参数签名算法 - 工具类
|
||||
*
|
||||
* @author click33
|
||||
* @since 2022-4-27
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaSignUtil {
|
||||
|
||||
|
@ -29,7 +29,7 @@ import java.util.Map;
|
||||
* </pre>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.29.0
|
||||
*/
|
||||
public class SaLoginConfig {
|
||||
|
||||
|
@ -32,7 +32,7 @@ import cn.dev33.satoken.util.SaTokenConsts;
|
||||
* </pre>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.13.2
|
||||
*/
|
||||
public class SaLoginModel {
|
||||
|
||||
|
@ -37,7 +37,7 @@ package cn.dev33.satoken.stp;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class SaTokenInfo {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import java.util.List;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public interface StpInterface {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.List;
|
||||
* 如果开发者没有实现 StpInterface 接口,则框架会使用此默认实现类,所有方法都返回空集合,即:用户不具有任何权限和角色。
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class StpInterfaceDefaultImpl implements StpInterface {
|
||||
|
||||
|
@ -52,7 +52,7 @@ import static cn.dev33.satoken.exception.NotLoginException.*;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class StpLogic {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import java.util.List;
|
||||
* Sa-Token 权限认证工具类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.10.0
|
||||
*/
|
||||
public class StpUtil {
|
||||
|
||||
|
@ -47,7 +47,7 @@ import java.util.function.Function;
|
||||
* </pre>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
public final class SaStrategy {
|
||||
|
||||
|
@ -19,7 +19,7 @@ package cn.dev33.satoken.temp;
|
||||
* Sa-Token 临时令牌验证模块 默认实现类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.20.0
|
||||
*/
|
||||
public class SaTempDefaultImpl implements SaTempInterface {
|
||||
|
||||
|
@ -28,7 +28,7 @@ import cn.dev33.satoken.util.SaTokenConsts;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.20.0
|
||||
*/
|
||||
public interface SaTempInterface {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import cn.dev33.satoken.SaManager;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.20.0
|
||||
*/
|
||||
public class SaTempUtil {
|
||||
|
||||
|
@ -35,7 +35,7 @@ import java.util.regex.Pattern;
|
||||
* Sa-Token 内部工具类
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.18.0
|
||||
*/
|
||||
public class SaFoxUtil {
|
||||
|
||||
|
@ -30,7 +30,7 @@ import java.util.Map;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.22.0
|
||||
*/
|
||||
public class SaResult extends LinkedHashMap<String, Object> implements Serializable{
|
||||
|
||||
|
@ -24,7 +24,7 @@ package cn.dev33.satoken.util;
|
||||
* </p>
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.8.0
|
||||
*/
|
||||
public class SaTokenConsts {
|
||||
|
||||
|
@ -23,7 +23,7 @@ package cn.dev33.satoken.util;
|
||||
* </p>
|
||||
*
|
||||
* @author Looly
|
||||
* @since <= 1.34.0
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public class StrFormatter {
|
||||
|
||||
@ -64,7 +64,7 @@ public class StrFormatter {
|
||||
* @param placeHolder 占位符,例如{}
|
||||
* @param argArray 参数列表
|
||||
* @return 结果
|
||||
* @since 5.7.14
|
||||
* @since 1.33.0
|
||||
*/
|
||||
public static String formatWith(String strPattern, String placeHolder, Object... argArray) {
|
||||
if (SaFoxUtil.isEmpty(strPattern) || SaFoxUtil.isEmpty(placeHolder) || SaFoxUtil.isEmpty(argArray)) {
|
||||
|
@ -48,7 +48,7 @@ import java.util.stream.Collectors;
|
||||
*
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.21.0
|
||||
*/
|
||||
@Configuration
|
||||
public class SaAloneRedisInject implements EnvironmentAware{
|
||||
|
@ -31,7 +31,7 @@ import cn.dev33.satoken.util.SaFoxUtil;
|
||||
* Sa-Token 集成 Thymeleaf 标签方言
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
public class SaTokenDialect extends AbstractProcessorDialect {
|
||||
|
||||
|
@ -28,7 +28,7 @@ import org.thymeleaf.templatemode.TemplateMode;
|
||||
* 封装 Sa-Token 标签方言处理器
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.27.0
|
||||
*/
|
||||
public class SaTokenTagProcessor extends AbstractAttributeTagProcessor {
|
||||
|
||||
|
@ -22,7 +22,7 @@ import cn.dev33.satoken.context.second.SaTokenSecondContextCreator;
|
||||
* Sa-Token 二级上下文 - 创建器 [ Dubbo版 ]
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaTokenSecondContextCreatorForDubbo implements SaTokenSecondContextCreator {
|
||||
|
||||
|
@ -30,7 +30,7 @@ import cn.dev33.satoken.exception.ApiDisabledException;
|
||||
* Sa-Token 二级上下文 [ Dubbo版本 ]
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
public class SaTokenSecondContextForDubbo implements SaTokenSecondContext {
|
||||
|
||||
|
@ -34,7 +34,7 @@ import cn.dev33.satoken.util.SaTokenConsts;
|
||||
* Sa-Token 整合 Dubbo Consumer 端(调用端)过滤器
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
* @since 1.34.0
|
||||
*/
|
||||
@Activate(group = {CommonConstants.CONSUMER}, order = -30000)
|
||||
public class SaTokenDubboConsumerFilter implements Filter {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user