Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractAuthUser<D> - Class in cn.coufran.springboot.starter.auth
-
配合
AuthUserManager使用,AuthUser只实现基础的数据保存,所有上下文操作交由AuthUserManager处理。 - AbstractAuthUser(AuthUserManager) - Constructor for class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
构造匿名用户
- AbstractAuthUser(AuthUserManager, boolean, D) - Constructor for class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
构造用户
- AbstractAuthUser(AuthUserManager, D) - Constructor for class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
构造认证用户
- acceptLogin(AuthUser<D>, D) - Method in interface cn.coufran.springboot.starter.auth.AuthUserManager
-
权限用户登录上下文,并返回证书
- acceptLogin(AuthUser<D>, D) - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUserManager
-
权限用户登录上下文,并返回证书
- acceptLogin(AuthUser<U>, U) - Method in class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUserManager
-
接受登录,将数据存入Session中
- acceptLogout(AuthUser<U>) - Method in interface cn.coufran.springboot.starter.auth.AuthUserManager
-
权限用户登出上下文
- acceptLogout(AuthUser<U>) - Method in class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUserManager
-
权限用户登出上下文,移除Session中的数据
- acceptLogout(AuthUser<U>) - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUserManager
-
不支持登出,直接返回
- acceptRefresh(AuthUser<D>) - Method in interface cn.coufran.springboot.starter.auth.AuthUserManager
-
刷新权限用户
- acceptRefresh(AuthUser<D>) - Method in class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUserManager
-
刷新AccessToken
- acceptRefresh(AuthUser<D>) - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUserManager
-
刷新AccessToken
- ACCESS - Enum constant in enum class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser.Auth
-
访问系统
- addInterceptors(InterceptorRegistry) - Method in class cn.coufran.springboot.starter.auth.config.SpringWebMvcConfig
-
添加权限拦截器
- addWhitePath(String) - Method in class cn.coufran.springboot.starter.auth.config.AuthInterceptor
-
添加权限拦截路径白名单
- AuthAddition<D> - Interface in cn.coufran.springboot.starter.auth.config
-
权限拦截插件,通过定义AuthAddition可以追加拦截规则
- AuthAddition.AuthException - Exception Class in cn.coufran.springboot.starter.auth.config
-
权限拦截异常
- AuthConfig - Class in cn.coufran.springboot.starter.auth.config
-
权限配置
- AuthConfig() - Constructor for class cn.coufran.springboot.starter.auth.config.AuthConfig
- AuthException(Result) - Constructor for exception class cn.coufran.springboot.starter.auth.config.AuthAddition.AuthException
-
构造拦截异常
- AuthException(String) - Constructor for exception class cn.coufran.springboot.starter.auth.config.AuthAddition.AuthException
-
构造拦截异常
- AuthException(HttpStatus, Result) - Constructor for exception class cn.coufran.springboot.starter.auth.config.AuthAddition.AuthException
-
构造拦截异常
- authIntercept(AuthUser<D>, HttpServletRequest, Object) - Method in interface cn.coufran.springboot.starter.auth.config.AuthAddition
-
拦截请求
- authInterceptor(AuthUser) - Method in class cn.coufran.springboot.starter.auth.config.AuthConfig
-
权限拦截器
- AuthInterceptor - Class in cn.coufran.springboot.starter.auth.config
-
权限拦截器
- AuthInterceptor(AuthUser) - Constructor for class cn.coufran.springboot.starter.auth.config.AuthInterceptor
-
构造拦截器
- authUser() - Method in class cn.coufran.springboot.starter.auth.config.AuthConfig
-
默认权限用户
- authUser(HttpServletRequest, AuthUserManager) - Method in class cn.coufran.springboot.starter.auth.impl.session.config.SessionAuthConfig
-
权限用户
- authUser(HttpServletRequest, AuthUserManager) - Method in class cn.coufran.springboot.starter.auth.impl.token.config.TokenAuthConfig
-
权限用户
- AuthUser<D> - Interface in cn.coufran.springboot.starter.auth
-
权限用户
- authUserManager(TokenRegister, List<TokenPayloadConverter<?>>, RefreshTokenRepository) - Method in class cn.coufran.springboot.starter.auth.impl.token.config.TokenAuthConfig
-
权限上下文
- authUserManager(HttpSession) - Method in class cn.coufran.springboot.starter.auth.impl.session.config.SessionAuthConfig
-
权限上下文
- AuthUserManager - Interface in cn.coufran.springboot.starter.auth
-
权限上下文,负责登录、登出、状态记录、权限判定等操作
C
- Certificate - Interface in cn.coufran.springboot.starter.auth
-
证书
- cn.coufran.springboot.starter.auth - package cn.coufran.springboot.starter.auth
-
权限拦截核心的接口和类
- cn.coufran.springboot.starter.auth.annotation - package cn.coufran.springboot.starter.auth.annotation
-
权限拦截相关注解
- cn.coufran.springboot.starter.auth.config - package cn.coufran.springboot.starter.auth.config
-
权限拦截相关配置
- cn.coufran.springboot.starter.auth.impl - package cn.coufran.springboot.starter.auth.impl
-
认证方式的实现
- cn.coufran.springboot.starter.auth.impl.session - package cn.coufran.springboot.starter.auth.impl.session
-
Session认证
- cn.coufran.springboot.starter.auth.impl.session.config - package cn.coufran.springboot.starter.auth.impl.session.config
-
Session认证配置
- cn.coufran.springboot.starter.auth.impl.simple - package cn.coufran.springboot.starter.auth.impl.simple
-
认证拦截的简单实现
- cn.coufran.springboot.starter.auth.impl.token - package cn.coufran.springboot.starter.auth.impl.token
-
Token认证相关类
- cn.coufran.springboot.starter.auth.impl.token.config - package cn.coufran.springboot.starter.auth.impl.token.config
-
Token认证配置
- createAnonymous() - Method in interface cn.coufran.springboot.starter.auth.AuthUserManager
-
创建匿名用户
- createAnonymous() - Method in class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUserManager
-
构造匿名权限用户
- createAnonymous() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUserManager
-
创建匿名用户
D
- delete(String) - Method in class cn.coufran.springboot.starter.auth.impl.token.LocalMapRefreshTokenRepository
-
删除并返回是否存在Refresh Token(原子操作)
- delete(String) - Method in interface cn.coufran.springboot.starter.auth.impl.token.RefreshTokenRepository
-
删除并返回是否存在Refresh Token(原子操作)
- deserialize(String) - Method in class cn.coufran.springboot.starter.auth.impl.token.PojoJsonTokenPayloadConverter
-
Payload转换为数据
- deserialize(String) - Method in interface cn.coufran.springboot.starter.auth.impl.token.TokenPayloadConverter
-
Payload转换为数据
- DummyKeyStore - Class in cn.coufran.springboot.starter.auth.impl.token
- DummyKeyStore() - Constructor for class cn.coufran.springboot.starter.auth.impl.token.DummyKeyStore
E
- EnableAuthSession - Annotation Interface in cn.coufran.springboot.starter.auth.impl.session.config
-
启用Session验证
- EnableAuthToken - Annotation Interface in cn.coufran.springboot.starter.auth.impl.token.config
-
启用Token验证
F
- FileKeyStore - Class in cn.coufran.springboot.starter.auth.impl.token
- FileKeyStore() - Constructor for class cn.coufran.springboot.starter.auth.impl.token.FileKeyStore
- FileKeyStore(String) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.FileKeyStore
G
- generate(String, int) - Method in class cn.coufran.springboot.starter.auth.impl.token.JjwtTokenRegister
-
生成Token
- generate(String, int) - Method in interface cn.coufran.springboot.starter.auth.impl.token.TokenRegister
-
生成Token
- getAccessToken() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenCertificate
-
获取Token
- getAuth() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser
-
获取权限
- getAuthUser(Certificate) - Method in interface cn.coufran.springboot.starter.auth.AuthUserManager
-
获取权限用户
- getData() - Method in class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
获取基础数据
- getData() - Method in interface cn.coufran.springboot.starter.auth.AuthUser
-
获取基础数据
- getData() - Method in class cn.coufran.springboot.starter.auth.impl.simple.SimpleAuthUser
-
获取基础数据
- getExpireTime() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenCertificate
-
获取Token有效时间
- getHttpStatus() - Method in exception class cn.coufran.springboot.starter.auth.config.AuthAddition.AuthException
-
获取HTTP响应状态
- getKey() - Method in class cn.coufran.springboot.starter.auth.impl.token.JjwtTokenRegister
-
获取秘钥
- getName() - Method in class cn.coufran.springboot.starter.auth.impl.token.PojoJsonTokenPayloadConverter
-
转换器名称:PojoJson
- getName() - Method in interface cn.coufran.springboot.starter.auth.impl.token.TokenPayloadConverter
-
转换器名称,越短越好,不得与已有的重复,不可以包含“|”
- getRefreshExpireTime() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenCertificate
-
获取RefreshToken有效时间
- getRefreshToken() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenCertificate
-
获取RefreshToken
- getResult() - Method in exception class cn.coufran.springboot.starter.auth.config.AuthAddition.AuthException
-
获取响应结果
- getToken() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser
-
获取Token原始值
I
- isAuthenticated() - Method in class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
是否已认证
- isAuthenticated() - Method in interface cn.coufran.springboot.starter.auth.AuthUser
-
是否已认证
- isAuthenticated() - Method in class cn.coufran.springboot.starter.auth.impl.simple.SimpleAuthUser
-
是否已认证
- isAuthenticated() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser
-
是否已认证
J
- JjwtTokenRegister - Class in cn.coufran.springboot.starter.auth.impl.token
-
基于Jjwt的Token注册机,重启后秘钥重置,所有Token失效
- JjwtTokenRegister() - Constructor for class cn.coufran.springboot.starter.auth.impl.token.JjwtTokenRegister
-
构造注册机,生成秘钥
- JjwtTokenRegister(byte[]) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.JjwtTokenRegister
-
给定秘钥,构造注册机
K
- keyStore(String) - Method in class cn.coufran.springboot.starter.auth.impl.token.config.TokenAuthConfig
- KeyStore - Interface in cn.coufran.springboot.starter.auth.impl.token
-
秘钥存储组件
L
- load() - Method in class cn.coufran.springboot.starter.auth.impl.token.DummyKeyStore
- load() - Method in class cn.coufran.springboot.starter.auth.impl.token.FileKeyStore
- load() - Method in interface cn.coufran.springboot.starter.auth.impl.token.KeyStore
-
加载秘钥
- LocalMapRefreshTokenRepository - Class in cn.coufran.springboot.starter.auth.impl.token
-
基于Map的Refresh Token本地存储
- LocalMapRefreshTokenRepository() - Constructor for class cn.coufran.springboot.starter.auth.impl.token.LocalMapRefreshTokenRepository
- login(D) - Method in class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
登录并设置基础数据
- login(D) - Method in interface cn.coufran.springboot.starter.auth.AuthUser
-
登录并设置基础数据
- login(D) - Method in class cn.coufran.springboot.starter.auth.impl.simple.SimpleAuthUser
-
登录并设置基础数据
- logout() - Method in class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
登出
- logout() - Method in interface cn.coufran.springboot.starter.auth.AuthUser
-
登出
- logout() - Method in class cn.coufran.springboot.starter.auth.impl.simple.SimpleAuthUser
-
登出
- logout() - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser
-
不支持登出,所以登出直接返回
P
- parse(String) - Method in class cn.coufran.springboot.starter.auth.impl.token.JjwtTokenRegister
-
校验并解析Token
- parse(String) - Method in interface cn.coufran.springboot.starter.auth.impl.token.TokenRegister
-
校验并解析Token
- PojoJsonTokenPayloadConverter - Class in cn.coufran.springboot.starter.auth.impl.token
-
基于JSON的POJO payload转换器,序列化规则:
ClassName|JSON数据 - PojoJsonTokenPayloadConverter() - Constructor for class cn.coufran.springboot.starter.auth.impl.token.PojoJsonTokenPayloadConverter
- preHandle(HttpServletRequest, HttpServletResponse, Object) - Method in class cn.coufran.springboot.starter.auth.config.AuthInterceptor
-
拦截请求,做权限校验
- Public - Annotation Interface in cn.coufran.springboot.starter.auth.annotation
-
标注开放接口
R
- refresh() - Method in class cn.coufran.springboot.starter.auth.AbstractAuthUser
-
刷新登录状态
- refresh() - Method in interface cn.coufran.springboot.starter.auth.AuthUser
-
刷新登录状态
- refresh() - Method in class cn.coufran.springboot.starter.auth.impl.simple.SimpleAuthUser
- REFRESH - Enum constant in enum class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser.Auth
-
刷新Token
- refreshTokenRepository() - Method in class cn.coufran.springboot.starter.auth.impl.token.config.TokenAuthConfig
-
Refresh Token存储
- RefreshTokenRepository - Interface in cn.coufran.springboot.starter.auth.impl.token
-
Refresh Token存储
- reloadAuthenticated(Certificate) - Method in interface cn.coufran.springboot.starter.auth.AuthUserManager
-
重新加载实名用户
- reloadAuthenticated(Certificate) - Method in class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUserManager
-
重新加载实名用户,从Session中取出数据,重新构造权限用户
- reloadAuthenticated(Certificate) - Method in class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUserManager
-
重新加载实名用户,解析Token为数据,然后重新构造
- removeWhitePath(String) - Method in class cn.coufran.springboot.starter.auth.config.AuthInterceptor
-
移除权限拦截路径白名单
S
- save(byte[]) - Method in class cn.coufran.springboot.starter.auth.impl.token.DummyKeyStore
- save(byte[]) - Method in class cn.coufran.springboot.starter.auth.impl.token.FileKeyStore
- save(byte[]) - Method in interface cn.coufran.springboot.starter.auth.impl.token.KeyStore
-
存储秘钥
- save(String, Date) - Method in class cn.coufran.springboot.starter.auth.impl.token.LocalMapRefreshTokenRepository
-
保存Refresh Token(原子操作)
- save(String, Date) - Method in interface cn.coufran.springboot.starter.auth.impl.token.RefreshTokenRepository
-
保存Refresh Token(原子操作)
- serialize(Object) - Method in class cn.coufran.springboot.starter.auth.impl.token.PojoJsonTokenPayloadConverter
-
数据转换为Payload
- serialize(T) - Method in interface cn.coufran.springboot.starter.auth.impl.token.TokenPayloadConverter
-
数据转换为Payload
- SessionAuthConfig - Class in cn.coufran.springboot.starter.auth.impl.session.config
-
Session权限拦截配置
- SessionAuthConfig() - Constructor for class cn.coufran.springboot.starter.auth.impl.session.config.SessionAuthConfig
- SessionAuthUser<D> - Class in cn.coufran.springboot.starter.auth.impl.session
-
基于Session的权限用户
- SessionAuthUser(SessionAuthUserManager) - Constructor for class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUser
-
构造权限用户
- SessionAuthUser(SessionAuthUserManager, D) - Constructor for class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUser
-
构造权限用户
- SessionAuthUserManager - Class in cn.coufran.springboot.starter.auth.impl.session
-
基于Session的权限上下文
- SessionAuthUserManager(HttpSession) - Constructor for class cn.coufran.springboot.starter.auth.impl.session.SessionAuthUserManager
-
构造权限上下文
- SessionCertificate - Class in cn.coufran.springboot.starter.auth.impl.session
-
空证书
- SessionCertificate() - Constructor for class cn.coufran.springboot.starter.auth.impl.session.SessionCertificate
- setAuthAdditions(List<AuthAddition>) - Method in class cn.coufran.springboot.starter.auth.config.AuthInterceptor
-
设置自定义拦截规则
- setAuthInterceptor(AuthInterceptor) - Method in class cn.coufran.springboot.starter.auth.config.SpringWebMvcConfig
-
注入权限拦截器
- setWhitePaths(List<String>) - Method in class cn.coufran.springboot.starter.auth.config.AuthInterceptor
-
设置权限拦截路径白名单
- SimpleAuthUser<D> - Class in cn.coufran.springboot.starter.auth.impl.simple
-
基本的权限用户实现
- SimpleAuthUser() - Constructor for class cn.coufran.springboot.starter.auth.impl.simple.SimpleAuthUser
- SimpleCertificate - Class in cn.coufran.springboot.starter.auth.impl.simple
-
空证书
- SimpleCertificate() - Constructor for class cn.coufran.springboot.starter.auth.impl.simple.SimpleCertificate
- SpringWebMvcConfig - Class in cn.coufran.springboot.starter.auth.config
-
Spring MVC配置
- SpringWebMvcConfig() - Constructor for class cn.coufran.springboot.starter.auth.config.SpringWebMvcConfig
- support(Object) - Method in class cn.coufran.springboot.starter.auth.impl.token.PojoJsonTokenPayloadConverter
-
是否支持转换指定数据
- support(T) - Method in interface cn.coufran.springboot.starter.auth.impl.token.TokenPayloadConverter
-
是否支持转换指定数据
T
- TokenAuthConfig - Class in cn.coufran.springboot.starter.auth.impl.token.config
-
Session权限拦截配置
- TokenAuthConfig() - Constructor for class cn.coufran.springboot.starter.auth.impl.token.config.TokenAuthConfig
- TokenAuthUser<D> - Class in cn.coufran.springboot.starter.auth.impl.token
-
基于Token的权限用户
- TokenAuthUser(TokenAuthUserManager) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser
-
构造权限用户
- TokenAuthUser(TokenAuthUserManager, D, TokenAuthUser.Auth, String) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser
-
构造权限用户
- TokenAuthUser.Auth - Enum Class in cn.coufran.springboot.starter.auth.impl.token
-
权限
- TokenAuthUserManager - Class in cn.coufran.springboot.starter.auth.impl.token
-
基于Token的权限上下文
- TokenAuthUserManager(TokenRegister, List<TokenPayloadConverter<?>>, RefreshTokenRepository) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUserManager
-
构造权限上下文
- TokenCertificate - Class in cn.coufran.springboot.starter.auth.impl.token
-
Token证书
- TokenCertificate(String) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.TokenCertificate
-
构造Token证书
- TokenCertificate(String, int) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.TokenCertificate
-
构造Token证书
- TokenCertificate(String, int, String, int) - Constructor for class cn.coufran.springboot.starter.auth.impl.token.TokenCertificate
-
构造Token证书
- TokenPayloadConverter<T> - Interface in cn.coufran.springboot.starter.auth.impl.token
-
Token Payload转换器,实现数据和Payload字符串的互相转换
- tokenPayloadConverters() - Method in class cn.coufran.springboot.starter.auth.impl.token.config.TokenAuthConfig
-
Payload解析器
- tokenRegister(KeyStore) - Method in class cn.coufran.springboot.starter.auth.impl.token.config.TokenAuthConfig
-
Token注册机
- TokenRegister - Interface in cn.coufran.springboot.starter.auth.impl.token
-
Token注册机,实现Token的生成、校验和解析
V
- valueOf(String) - Static method in enum class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser.Auth
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cn.coufran.springboot.starter.auth.impl.token.TokenAuthUser.Auth
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form