A B C D E G H M P R S U
A
- AUTHORIZATION_KEY - 接口 中的静态变量com.relaxed.oauth2.common.constant.SecurityConstant
-
认证请求头名称 用于传递认证信息
B
- BASIC_PREFIX - 接口 中的静态变量com.relaxed.oauth2.common.constant.SecurityConstant
-
Basic认证前缀 用于标识Basic认证方式
C
- CLIENT_ID_KEY - 接口 中的静态变量com.relaxed.oauth2.common.constant.SecurityConstant
-
客户端ID的请求参数名
- com.relaxed.oauth2.common.constant - 程序包 com.relaxed.oauth2.common.constant
-
- com.relaxed.oauth2.common.handler - 程序包 com.relaxed.oauth2.common.handler
-
- com.relaxed.oauth2.common.util - 程序包 com.relaxed.oauth2.common.util
-
- commence(HttpServletRequest, HttpServletResponse, AuthenticationException) - 类 中的方法com.relaxed.oauth2.common.handler.CustomAuthenticationEntryPoint
-
处理未认证的请求 设置响应头信息,返回401状态码和错误信息
- CustomAccessDeniedHandler - com.relaxed.oauth2.common.handler中的类
-
自定义访问拒绝处理器 用于处理无权限访问的请求,返回统一的JSON格式响应 当用户访问需要特定权限的资源但权限不足时触发
- CustomAccessDeniedHandler() - 类 的构造器com.relaxed.oauth2.common.handler.CustomAccessDeniedHandler
-
- CustomAuthenticationEntryPoint - com.relaxed.oauth2.common.handler中的类
-
自定义认证入口点 用于处理未认证的请求,返回统一的JSON格式响应 当用户访问需要认证的资源但未提供有效凭证时触发
- CustomAuthenticationEntryPoint() - 类 的构造器com.relaxed.oauth2.common.handler.CustomAuthenticationEntryPoint
-
D
- decodeAES(String, String) - 类 中的静态方法com.relaxed.oauth2.common.util.PasswordUtils
-
解密AES加密的密码 使用CBC模式和PKCS5填充
- DEFAULT_IGNORE_AUTH_URL - 接口 中的静态变量com.relaxed.oauth2.common.constant.SecurityConstant
-
默认忽略鉴权的URL列表 这些URL不需要进行认证即可访问
E
- encode(CharSequence) - 类 中的静态方法com.relaxed.oauth2.common.util.PasswordUtils
-
使用默认编码器加密密码
- encodeAESBase64(String, String) - 类 中的静态方法com.relaxed.oauth2.common.util.PasswordUtils
-
使用AES加密密码 使用CBC模式和PKCS5填充
- ENCODER - 类 中的静态变量com.relaxed.oauth2.common.util.PasswordUtils
-
密码编码器实例 使用默认的bcrypt算法
G
- getAuthentication() - 类 中的静态方法com.relaxed.oauth2.common.util.SecurityUtils
-
获取当前认证信息 包含用户身份、权限等信息
- getSecurityContext() - 类 中的静态方法com.relaxed.oauth2.common.util.SecurityUtils
-
获取安全上下文 包含当前线程的安全相关信息
- GRANT_TYPE_KEY - 接口 中的静态变量com.relaxed.oauth2.common.constant.SecurityConstant
-
授权类型的请求参数名
H
- handle(HttpServletRequest, HttpServletResponse, AccessDeniedException) - 类 中的方法com.relaxed.oauth2.common.handler.CustomAccessDeniedHandler
-
处理无权限访问的请求 设置响应头信息,返回403状态码和错误信息
M
- matches(CharSequence, String) - 类 中的静态方法com.relaxed.oauth2.common.util.PasswordUtils
-
验证明文密码和密文密码是否匹配
P
- PasswordUtils - com.relaxed.oauth2.common.util中的类
-
密码工具类 提供密码加密、解密和验证的功能 支持多种加密算法: 1.
R
- REFRESH_TOKEN_KEY - 接口 中的静态变量com.relaxed.oauth2.common.constant.SecurityConstant
-
刷新Token的请求参数名
S
- SecurityConstant - com.relaxed.oauth2.common.constant中的接口
-
安全相关常量接口 定义OAuth2认证过程中使用的常量 包括认证请求头、认证类型、Token类型等
- SecurityUtils - com.relaxed.oauth2.common.util中的类
-
安全工具类 提供获取Spring Security上下文和认证信息的方法 用于在应用中方便地获取当前用户的安全信息
- SecurityUtils() - 类 的构造器com.relaxed.oauth2.common.util.SecurityUtils
-
U
- upgradeEncoding(String) - 类 中的静态方法com.relaxed.oauth2.common.util.PasswordUtils
-
判断密码是否需要升级加密算法 用于密码加密算法的平滑升级
A B C D E G H M P R S U
Copyright © 2025. All rights reserved.