跳过导航链接
A C D E G H K L M O P R S U V 

A

AUTH_EXCEPTION_STEP_CODE - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
异常枚举的步进值
AUTH_MODULE_NAME - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
auth模块的名称
AuthConfigExpander - cn.stylefeng.roses.kernel.auth.api.expander中的类
权限相关配置快速获取
AuthConfigExpander() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
 
AuthConstants - cn.stylefeng.roses.kernel.auth.api.constants中的接口
auth,鉴权模块的常量
AuthException - cn.stylefeng.roses.kernel.auth.api.exception中的异常错误
认证类异常
AuthException(AbstractExceptionEnum, Object...) - 异常错误 的构造器cn.stylefeng.roses.kernel.auth.api.exception.AuthException
 
AuthException(AbstractExceptionEnum) - 异常错误 的构造器cn.stylefeng.roses.kernel.auth.api.exception.AuthException
 
AuthExceptionEnum - cn.stylefeng.roses.kernel.auth.api.exception.enums中的枚举
认证相关异常
AuthServiceApi - cn.stylefeng.roses.kernel.auth.api中的接口
认证服务的接口,包括基本的登录退出操作和校验token等操作

C

checkAuth(String, String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthServiceApi
校验用户是否认证通过,认证是校验token的过程,校验失败会抛出异常
checkPassword(String, String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.password.PasswordStoredEncryptApi
校验密码加密前和加密后是否一致,多用于判断用户输入密码是否正确
checkPermission(String, String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.PermissionServiceApi
校验当前用户是否有某个接口的权限 只要权限校验不通过,则会抛出异常
cn.stylefeng.roses.kernel.auth.api - 程序包 cn.stylefeng.roses.kernel.auth.api
 
cn.stylefeng.roses.kernel.auth.api.constants - 程序包 cn.stylefeng.roses.kernel.auth.api.constants
 
cn.stylefeng.roses.kernel.auth.api.context - 程序包 cn.stylefeng.roses.kernel.auth.api.context
 
cn.stylefeng.roses.kernel.auth.api.cookie - 程序包 cn.stylefeng.roses.kernel.auth.api.cookie
 
cn.stylefeng.roses.kernel.auth.api.enums - 程序包 cn.stylefeng.roses.kernel.auth.api.enums
 
cn.stylefeng.roses.kernel.auth.api.exception - 程序包 cn.stylefeng.roses.kernel.auth.api.exception
 
cn.stylefeng.roses.kernel.auth.api.exception.enums - 程序包 cn.stylefeng.roses.kernel.auth.api.exception.enums
 
cn.stylefeng.roses.kernel.auth.api.expander - 程序包 cn.stylefeng.roses.kernel.auth.api.expander
 
cn.stylefeng.roses.kernel.auth.api.password - 程序包 cn.stylefeng.roses.kernel.auth.api.password
 
cn.stylefeng.roses.kernel.auth.api.pojo.auth - 程序包 cn.stylefeng.roses.kernel.auth.api.pojo.auth
 
cn.stylefeng.roses.kernel.auth.api.pojo.login - 程序包 cn.stylefeng.roses.kernel.auth.api.pojo.login
 
cn.stylefeng.roses.kernel.auth.api.pojo.login.basic - 程序包 cn.stylefeng.roses.kernel.auth.api.pojo.login.basic
 
cn.stylefeng.roses.kernel.auth.api.prop - 程序包 cn.stylefeng.roses.kernel.auth.api.prop
 
codeToEnum(Integer) - 枚举 中的静态方法cn.stylefeng.roses.kernel.auth.api.enums.DataScopeTypeEnum
根据code获取枚举
createCookie(String, String, Integer) - 类 中的方法cn.stylefeng.roses.kernel.auth.api.cookie.SessionCookieCreator
创建cookie的操作 这里不要重写这个方法,重写后名称对不上可能导致登录后权限校验失败
createSession(String, LoginUser, Boolean) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
创建会话

D

DataScopeTypeEnum - cn.stylefeng.roses.kernel.auth.api.enums中的枚举
数据范围类型枚举,数据范围的值越小,数据权限越小
decrypt(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.password.PasswordTransferEncryptApi
解密密码信息
DEFAULT_AUTH_HEADER_NAME - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
默认http请求携带token的header名称
DEFAULT_AUTH_JWT_TIMEOUT_SECONDS - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
auth模块,jwt的失效时间,默认7天
DEFAULT_AUTH_PARAM_NAME - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
获取http请求携带token的param的名称
DEFAULT_PASSWORD - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
默认密码
destroySessionCookie() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
销毁当前用户对应的会话cookie 一般用在单体不分离版本中

E

encrypt(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.password.PasswordStoredEncryptApi
加密密码
encrypt(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.password.PasswordTransferEncryptApi
加密密码
expandAction(LoginUser) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.prop.LoginUserPropExpander
为loginUser赋值
expandCookieProp(Cookie) - 类 中的方法cn.stylefeng.roses.kernel.auth.api.cookie.SessionCookieCreator
拓展cookie的配置

G

get() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.context.LoginUserHolder
获取holder中的值
getAuthJwtSecret() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
用于auth校验的jwt的秘钥
getAuthJwtTimeoutSeconds() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
用于auth模块权限校验的jwt失效时间 这个时间也是“记住我”功能的过期时间,默认为7天 如果登录的时候开启了“记住我”,则用户7天内免登录
getAuthTokenHeaderName() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
获取携带token的header头的名称
getAuthTokenParamName() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
获取携带token的param传参的名称
getLoginUser() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
获取当前登陆用户 如果获取不到当前登陆用户会抛出 AuthException
getLoginUserNullable() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
获取当前登陆用户 如果获取不到当前登陆用户返回null
getNoneSecurityConfig() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
获取不被权限控制的url
getSession(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
通过token获取会话
getSessionCookieName() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
会话保存在cookie中时,cooke的name
getSessionExpiredSeconds() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
获取session过期时间,默认3600秒 在这个时段内不操作,会将用户踢下线,从新登陆 如果开启了记住我功能,在session过期后会从新创建session
getSingleAccountLoginFlag() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.expander.AuthConfigExpander
获取单账号单端登录的开关 单账号单端登录为限制一个账号多个浏览器登录
getSuperAdminFlag() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
获取是否是超级管理员的标识
getToken() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
获取当前登陆用户的token 如果获取不到,返回null
getWsUrl() - 类 中的方法cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser
 

H

hasLogin() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
判断当前用户是否登录
haveButton(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.LoginUserApi
是否包含某个按钮的权限
haveSession(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
判断一个token是否还存在会话状态

K

KAPTCHA_SESSION_KEY - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
验证码 session key

L

LOGGED_TOKEN_PREFIX - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
登录用户的缓存前缀
LOGGED_USERID_PREFIX - 接口 中的静态变量cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants
登录用户id的缓存前缀
login(LoginRequest) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthServiceApi
常规登录操作
LoginContext - cn.stylefeng.roses.kernel.auth.api.context中的类
快速获取当前登陆用户的一系列操作方法,具体实现在Spring容器中查找
LoginContext() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.context.LoginContext
 
LoginRequest - cn.stylefeng.roses.kernel.auth.api.pojo.auth中的类
登录的请求参数
LoginRequest() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.pojo.auth.LoginRequest
 
LoginResponse - cn.stylefeng.roses.kernel.auth.api.pojo.auth中的类
登录操作的响应结果
LoginResponse(LoginUser, String, Long) - 类 的构造器cn.stylefeng.roses.kernel.auth.api.pojo.auth.LoginResponse
 
LoginUser - cn.stylefeng.roses.kernel.auth.api.pojo.login中的类
登录用户信息
LoginUser() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser
 
LoginUserApi - cn.stylefeng.roses.kernel.auth.api中的接口
当前登陆用户相关的一系列方法
LoginUserHolder - cn.stylefeng.roses.kernel.auth.api.context中的类
当前登录用户的临时保存容器
LoginUserHolder() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.context.LoginUserHolder
 
LoginUserPropExpander - cn.stylefeng.roses.kernel.auth.api.prop中的接口
当前登录用户属性的组装和填充 LoginUser对象的属性比较多,为了方便后期拓展,统一用此接口为新字段set值 使用方法: 第一步,为LoginUser加新的字段 第二步,新写一个类实现本接口,在expandAction方法为新属性赋值即可 注意,这个方法里边的实现在编写时,不能使用 LoginContext 获取当前用户
loginWithUserName(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthServiceApi
登录(直接用账号登录),一般用在第三方登录
logout() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthServiceApi
当前登录人退出登录
logoutWithToken(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthServiceApi
移除某个token,也就是退出某个用户

M

me() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.context.LoginContext
 

O

onlineUserList() - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
获取在线用户列表

P

PasswordStoredEncryptApi - cn.stylefeng.roses.kernel.auth.api.password中的接口
密码存储时,将密码进行加密的api
PasswordTransferEncryptApi - cn.stylefeng.roses.kernel.auth.api.password中的接口
密码传输时,将密码进行加密和解密的api
PermissionServiceApi - cn.stylefeng.roses.kernel.auth.api中的接口
权限相关的服务接口

R

refreshSession(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
刷新会话的过期时间,刷新后用户当前的过期时间将重置
remove() - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.context.LoginUserHolder
删除保存的用户
removeSession(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
根据token删除一个会话
removeSessionExcludeToken(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
删除用户所有的会话,但除了参数传的token的会话 用在单端登录中,一个账号只能在一个浏览器登录

S

SessionCookieCreator - cn.stylefeng.roses.kernel.auth.api.cookie中的类
cookie的创建器,用在session创建时,给httpServletResponse添加cookie 每个公司情况不一样,所以预留拓展接口
SessionCookieCreator() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.cookie.SessionCookieCreator
 
SessionManagerApi - cn.stylefeng.roses.kernel.auth.api中的接口
用户会话管理 会话指的是用户登录后和服务器一直保持一个交互状态的维护 会话具有时效性,反之,当用户不再访问系统的时候,会话应该自动失效
set(LoginUser) - 类 中的静态方法cn.stylefeng.roses.kernel.auth.api.context.LoginUserHolder
set holder中内容
SimpleRoleInfo - cn.stylefeng.roses.kernel.auth.api.pojo.login.basic中的类
用户基本信息
SimpleRoleInfo() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.pojo.login.basic.SimpleRoleInfo
 
SimpleUserInfo - cn.stylefeng.roses.kernel.auth.api.pojo.login.basic中的类
用户基本信息
SimpleUserInfo() - 类 的构造器cn.stylefeng.roses.kernel.auth.api.pojo.login.basic.SimpleUserInfo
 

U

updateSession(String, LoginUser) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.SessionManagerApi
更新当前会话的loginUser对象的内容

V

validateToken(String) - 接口 中的方法cn.stylefeng.roses.kernel.auth.api.AuthServiceApi
校验jwt token的正确性,调用jwt工具类相关方法校验 结果有三种,第一是jwt过期了,第二是用户随便写的错误token,第三种是token正确,token正确不会抛出异常
valueOf(String) - 枚举 中的静态方法cn.stylefeng.roses.kernel.auth.api.enums.DataScopeTypeEnum
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.stylefeng.roses.kernel.auth.api.exception.enums.AuthExceptionEnum
返回带有指定名称的该类型的枚举常量。
values() - 枚举 中的静态方法cn.stylefeng.roses.kernel.auth.api.enums.DataScopeTypeEnum
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.stylefeng.roses.kernel.auth.api.exception.enums.AuthExceptionEnum
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
A C D E G H K L M O P R S U V 
跳过导航链接

Copyright © 2021. All rights reserved.