跳过导航链接
A B C D E G I J L M O P R S T U V 

A

accessDeniedHandler() - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置访问拒绝处理器 用于处理权限不足的请求
accessTokenConverter() - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置访问令牌转换器 用于将token字符串转换成OAuth2AccessToken对象
afterPropertiesSet() - 类 中的方法com.relaxed.oauth2.auth.extension.refresh.CustomPreAuthenticatedUserDetailsService
 
authenticate(Authentication) - 类 中的方法com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationProvider
执行认证 根据手机号获取用户信息并创建认证令牌
authenticationEntryPoint() - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置认证入口点 用于处理未认证的请求
authenticationManagerBean() - 类 中的方法com.relaxed.oauth2.auth.configurer.CustomWebSecurityConfigurer
配置认证管理器Bean 用于处理认证请求
AuthorizationAutoConfiguration - com.relaxed.oauth2.auth.configuration中的类
OAuth2授权服务器自动配置类 用于配置OAuth2授权服务器的核心组件 主要功能: 1.
AuthorizationAutoConfiguration() - 类 的构造器com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
 
authorizationInfoHandle() - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置授权信息处理器 用于处理不同授权类型的用户信息获取
AuthorizationInfoHandle - com.relaxed.oauth2.auth.handler中的类
授权信息处理器 用于管理客户端和授权类型的处理器映射 支持动态注册客户端和授权类型的处理逻辑 如果找不到对应的处理器,则使用默认方式执行
AuthorizationInfoHandle() - 类 的构造器com.relaxed.oauth2.auth.handler.AuthorizationInfoHandle
 

B

build(AuthorizationServerEndpointsConfigurer) - 类 中的方法com.relaxed.oauth2.auth.builder.TokenGrantBuilder
构建Token授予者 组合默认授权类型和自定义授权类型的Token授予者
build(AuthorizationServerEndpointsConfigurer) - 类 中的方法com.relaxed.oauth2.auth.builder.TokenServicesBuilder
构建Token服务 配置Token服务的各项参数,包括: 1.

C

CaptchaTokenGranter - com.relaxed.oauth2.auth.extension.captcha中的类
验证码授权者 实现基于验证码的OAuth2授权流程 支持用户名密码登录,并在认证前进行验证码校验
CaptchaTokenGranter(AuthorizationServerTokenServices, ClientDetailsService, OAuth2RequestFactory, AuthenticationManager, PreValidator) - 类 的构造器com.relaxed.oauth2.auth.extension.captcha.CaptchaTokenGranter
构造函数
ClassUtil - com.relaxed.oauth2.auth.util中的类
类工具类 提供类相关的工具方法,主要用于反射操作 包含方法缓存机制,提高反射性能
ClassUtil() - 类 的构造器com.relaxed.oauth2.auth.util.ClassUtil
 
client(String, UserDetailsService) - 类 中的方法com.relaxed.oauth2.auth.handler.AuthorizationInfoHandle
注册单个客户端及其对应的用户详情服务
client(Map<String, UserDetailsService>) - 类 中的方法com.relaxed.oauth2.auth.handler.AuthorizationInfoHandle
批量注册客户端及其对应的用户详情服务
com.relaxed.oauth2.auth.annotation - 程序包 com.relaxed.oauth2.auth.annotation
 
com.relaxed.oauth2.auth.builder - 程序包 com.relaxed.oauth2.auth.builder
 
com.relaxed.oauth2.auth.configuration - 程序包 com.relaxed.oauth2.auth.configuration
 
com.relaxed.oauth2.auth.configurer - 程序包 com.relaxed.oauth2.auth.configurer
 
com.relaxed.oauth2.auth.exception - 程序包 com.relaxed.oauth2.auth.exception
 
com.relaxed.oauth2.auth.extension - 程序包 com.relaxed.oauth2.auth.extension
 
com.relaxed.oauth2.auth.extension.captcha - 程序包 com.relaxed.oauth2.auth.extension.captcha
 
com.relaxed.oauth2.auth.extension.mobile - 程序包 com.relaxed.oauth2.auth.extension.mobile
 
com.relaxed.oauth2.auth.extension.refresh - 程序包 com.relaxed.oauth2.auth.extension.refresh
 
com.relaxed.oauth2.auth.functions - 程序包 com.relaxed.oauth2.auth.functions
 
com.relaxed.oauth2.auth.handler - 程序包 com.relaxed.oauth2.auth.handler
 
com.relaxed.oauth2.auth.util - 程序包 com.relaxed.oauth2.auth.util
 
configure(AuthorizationServerSecurityConfigurer) - 类 中的方法com.relaxed.oauth2.auth.configurer.CustomAuthorizationServerConfigurer
配置授权服务器的安全规则 包括: 1.
configure(AuthorizationServerEndpointsConfigurer) - 类 中的方法com.relaxed.oauth2.auth.configurer.CustomAuthorizationServerConfigurer
配置授权服务器的端点 包括: 1.
configure(ClientDetailsServiceConfigurer) - 类 中的方法com.relaxed.oauth2.auth.configurer.CustomAuthorizationServerConfigurer
配置客户端详情服务 通过OAuth2ClientConfigurer配置客户端信息 客户端信息可以存储在代码、配置文件或数据库中
configure(AuthenticationManagerBuilder) - 类 中的方法com.relaxed.oauth2.auth.configurer.CustomWebSecurityConfigurer
配置认证管理器 注册所有自定义的认证提供者
configure(HttpSecurity) - 类 中的方法com.relaxed.oauth2.auth.configurer.CustomWebSecurityConfigurer
配置HTTP安全规则 设置基本的安全配置,包括: 1.
configure(ClientDetailsServiceConfigurer) - 类 中的方法com.relaxed.oauth2.auth.configurer.JdbcOauth2ClientConfigurer
配置客户端详情服务 使用JDBC方式配置客户端信息的存储
configure(ClientDetailsServiceConfigurer) - 接口 中的方法com.relaxed.oauth2.auth.configurer.OAuth2ClientConfigurer
配置客户端详情服务 用于设置客户端信息的存储方式和配置
create(Class<T>) - 类 中的静态方法com.relaxed.oauth2.auth.util.ProxyFactory
根据类创建代理对象 使用默认的PreMethodInterceptor作为方法拦截器
create(T) - 类 中的静态方法com.relaxed.oauth2.auth.util.ProxyFactory
根据实例创建代理对象 使用默认的PreMethodInterceptor作为方法拦截器
create(Class<T>, MethodInterceptor) - 类 中的静态方法com.relaxed.oauth2.auth.util.ProxyFactory
根据类和自定义方法拦截器创建代理对象
create(T, MethodInterceptor) - 类 中的静态方法com.relaxed.oauth2.auth.util.ProxyFactory
根据实例和自定义方法拦截器创建代理对象
CustomAuthorizationServerConfigurer - com.relaxed.oauth2.auth.configurer中的类
自定义授权服务器配置器 继承自AuthorizationServerConfigurerAdapter,用于配置OAuth2授权服务器的各项功能: 1.
CustomAuthorizationServerConfigurer() - 类 的构造器com.relaxed.oauth2.auth.configurer.CustomAuthorizationServerConfigurer
 
CustomOAuth2Exception - com.relaxed.oauth2.auth.exception中的异常错误
自定义OAuth2异常 扩展Spring Security OAuth2的异常处理 使用自定义的序列化器进行JSON序列化
CustomOAuth2Exception(String, Throwable) - 异常错误 的构造器com.relaxed.oauth2.auth.exception.CustomOAuth2Exception
构造函数
CustomOAuth2Exception(String) - 异常错误 的构造器com.relaxed.oauth2.auth.exception.CustomOAuth2Exception
构造函数
CustomOAuth2ExceptionJackson2Serializer - com.relaxed.oauth2.auth.exception中的类
OAuth2异常JSON序列化器 用于自定义OAuth2异常的JSON序列化格式 将OAuth2异常转换为统一的响应格式
CustomOAuth2ExceptionJackson2Serializer() - 类 的构造器com.relaxed.oauth2.auth.exception.CustomOAuth2ExceptionJackson2Serializer
默认构造函数 指定序列化的异常类型
CustomPreAuthenticatedUserDetailsService<T extends org.springframework.security.core.Authentication> - com.relaxed.oauth2.auth.extension.refresh中的类
刷新Token认证用户详情服务 用于处理OAuth2刷新令牌时的用户认证 支持根据不同的授权类型选择不同的用户信息获取方式
CustomPreAuthenticatedUserDetailsService(UserDetailsService, AuthorizationInfoHandle, TokenStore) - 类 的构造器com.relaxed.oauth2.auth.extension.refresh.CustomPreAuthenticatedUserDetailsService
构造函数
customWebResponseExceptionTranslator() - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置自定义的认证异常转换器 用于处理OAuth2认证过程中的异常
CustomWebResponseExceptionTranslator - com.relaxed.oauth2.auth.exception中的类
自定义Web响应异常转换器 用于统一处理OAuth2认证过程中的异常 将不同类型的异常转换为统一的OAuth2异常格式
CustomWebResponseExceptionTranslator() - 类 的构造器com.relaxed.oauth2.auth.exception.CustomWebResponseExceptionTranslator
 
CustomWebSecurityConfigurer - com.relaxed.oauth2.auth.configurer中的类
自定义Web安全配置器 扩展Spring Security的Web安全配置 支持自定义认证提供者和安全规则
CustomWebSecurityConfigurer() - 类 的构造器com.relaxed.oauth2.auth.configurer.CustomWebSecurityConfigurer
 

D

daoAuthenticationProvider(PasswordEncoder, UserDetailsService) - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置用户名密码认证提供者 用于处理用户名密码认证
decodeAES(String, String) - 类 中的静态方法com.relaxed.oauth2.auth.util.PasswordUtils
解密AES加密的密码 使用CBC模式和PKCS5填充
defaultTokenGranters(AuthorizationServerEndpointsConfigurer) - 类 中的方法com.relaxed.oauth2.auth.builder.TokenGrantBuilder
获取默认Token授予者列表 包含OAuth2规范的5种授权类型: 1.

E

EnableOauth2AuthorizationServer - com.relaxed.oauth2.auth.annotation中的注释类型
OAuth2授权服务器启用注解 用于启用OAuth2授权服务器功能 主要功能: 1.
encode(CharSequence) - 类 中的静态方法com.relaxed.oauth2.auth.util.PasswordUtils
使用默认加密器加密密码
encodeAESBase64(String, String) - 类 中的静态方法com.relaxed.oauth2.auth.util.PasswordUtils
使用AES加密密码 使用CBC模式和PKCS5填充
ENCODER - 类 中的静态变量com.relaxed.oauth2.auth.util.PasswordUtils
默认密码加密器 使用BCrypt作为默认加密算法
eraseCredentials() - 类 中的方法com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationToken
清除敏感信息 清除认证凭证,防止敏感信息泄露
ExtendUserDetailsService - com.relaxed.oauth2.auth.extension中的接口
扩展的用户详情服务接口 继承自Spring Security的UserDetailsService,提供额外的用户认证方式 主要用于支持手机号登录等扩展的认证方式

G

getAuthenticationManager() - 类 中的方法com.relaxed.oauth2.auth.builder.TokenGrantBuilder
获取认证管理器
getByType(String) - 类 中的方法com.relaxed.oauth2.auth.extension.PreValidatorHolder
根据验证类型获取对应的预验证器
getCredentials() - 类 中的方法com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationToken
 
getGrantType() - 类 中的静态方法com.relaxed.oauth2.auth.util.RequestUtil
获取授权类型 从请求参数中获取grant_type参数值
getMethod(Class, String, Object...) - 类 中的静态方法com.relaxed.oauth2.auth.util.ClassUtil
获取类中指定名称和参数类型的方法 支持方法缓存,避免重复反射
getOAuth2Authentication(ClientDetails, TokenRequest) - 类 中的方法com.relaxed.oauth2.auth.extension.captcha.CaptchaTokenGranter
获取OAuth2认证信息 处理验证码认证流程,包括: 1.
getOAuth2Authentication(ClientDetails, TokenRequest) - 类 中的方法com.relaxed.oauth2.auth.extension.mobile.SmsCodeTokenGranter
获取OAuth2认证信息 处理手机验证码认证流程,包括: 1.
getOAuth2ClientId() - 类 中的静态方法com.relaxed.oauth2.auth.util.RequestUtil
获取OAuth2客户端ID 支持两种方式获取客户端信息: 1.
getPrincipal() - 类 中的方法com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationToken
 
getRequestRefreshToken() - 类 中的静态方法com.relaxed.oauth2.auth.util.RequestUtil
获取刷新令牌 从请求参数中获取refresh_token参数值
GRANT_TYPE - 类 中的静态变量com.relaxed.oauth2.auth.extension.captcha.CaptchaTokenGranter
授权类型标识 用于标识验证码授权方式 当请求中的grant_type参数值为captcha时,将使用此授权者处理请求
GRANT_TYPE - 类 中的静态变量com.relaxed.oauth2.auth.extension.mobile.SmsCodeTokenGranter
授权类型标识 用于标识手机验证码授权方式 当请求中的grant_type参数值为sms_code时,将使用此授权者处理请求
grantType(String, RetriveUserFunction) - 类 中的方法com.relaxed.oauth2.auth.handler.AuthorizationInfoHandle
注册单个授权类型及其对应的用户检索函数
grantType(Map<String, RetriveUserFunction>) - 类 中的方法com.relaxed.oauth2.auth.handler.AuthorizationInfoHandle
批量注册授权类型及其对应的用户检索函数

I

intercept(Object, Method, Object[], MethodProxy) - 类 中的方法com.relaxed.oauth2.auth.util.PreMethodInterceptor
拦截方法调用 根据客户端ID选择对应的用户详情服务执行方法

J

JdbcOauth2ClientConfigurer - com.relaxed.oauth2.auth.configurer中的类
JDBC OAuth2客户端配置器 实现基于数据库的OAuth2客户端配置 使用JDBC方式存储和管理客户端信息
JdbcOauth2ClientConfigurer() - 类 的构造器com.relaxed.oauth2.auth.configurer.JdbcOauth2ClientConfigurer
 

L

loadUserDetails(T) - 类 中的方法com.relaxed.oauth2.auth.extension.refresh.CustomPreAuthenticatedUserDetailsService
加载用户详情信息 根据刷新令牌和认证信息获取用户详情 支持根据不同的授权类型选择不同的用户信息获取方式
loginByMobile(String) - 接口 中的方法com.relaxed.oauth2.auth.extension.ExtendUserDetailsService
通过手机号加载用户信息 用于支持手机号登录的认证方式

M

matches(CharSequence, String) - 类 中的静态方法com.relaxed.oauth2.auth.util.PasswordUtils
验证明文密码和密文密码是否匹配

O

oAuth2ClientConfigurer(DataSource) - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置OAuth2客户端配置器 默认使用JDBC从数据库获取客户端信息
OAuth2ClientConfigurer - com.relaxed.oauth2.auth.configurer中的接口
OAuth2客户端配置器接口 用于自定义OAuth2授权服务器的客户端配置 实现此接口可以自定义客户端信息的存储方式,如数据库、内存等
obtainClient(String) - 类 中的方法com.relaxed.oauth2.auth.handler.AuthorizationInfoHandle
根据客户端ID获取对应的用户详情服务
obtainFunction(String) - 类 中的方法com.relaxed.oauth2.auth.handler.AuthorizationInfoHandle
根据授权类型获取对应的用户检索函数

P

passwordEncoder() - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置密码编码器 用于处理密码的加密和验证
PasswordUtils - com.relaxed.oauth2.auth.util中的类
密码工具类 提供密码加密、解密和验证的功能 前端交互使用AES加密(CBC模式,PKCS5填充) 服务端OAuth2使用BCrypt加密
PreMethodInterceptor - com.relaxed.oauth2.auth.util中的类
方法前置拦截器 用于在方法执行前根据客户端ID选择对应的用户详情服务 支持动态切换不同客户端的用户详情服务实现
PreMethodInterceptor() - 类 的构造器com.relaxed.oauth2.auth.util.PreMethodInterceptor
 
PreValidator - com.relaxed.oauth2.auth.extension中的接口
预验证器接口 用于在用户认证之前进行额外的验证操作,如验证码校验等 实现此接口的类可以定义自己的验证逻辑,并通过supportType方法指定支持的验证类型
preValidatorHolder(ObjectProvider<PreValidator>) - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置预检查持有器 用于管理各种预检查验证器
PreValidatorHolder - com.relaxed.oauth2.auth.extension中的类
预验证器持有者 用于管理和获取不同类型的预验证器实例 通过Map结构存储预验证器,支持根据验证类型快速获取对应的验证器
PreValidatorHolder() - 类 的构造器com.relaxed.oauth2.auth.extension.PreValidatorHolder
 
provide(AuthorizationServerEndpointsConfigurer) - 接口 中的方法com.relaxed.oauth2.auth.builder.TokenGranterProvider
提供Token授予者 根据授权服务器端点配置创建Token授予者
ProxyFactory - com.relaxed.oauth2.auth.util中的类
代理工厂类 用于创建基于CGLIB的动态代理对象 支持根据类或实例创建代理,并可自定义方法拦截器
ProxyFactory() - 类 的构造器com.relaxed.oauth2.auth.util.ProxyFactory
 

R

RequestUtil - com.relaxed.oauth2.auth.util中的类
请求工具类 用于处理OAuth2认证相关的请求参数 支持从请求路径和请求头中获取认证信息
RequestUtil() - 类 的构造器com.relaxed.oauth2.auth.util.RequestUtil
 
retrive(T, UserDetailsService) - 接口 中的方法com.relaxed.oauth2.auth.functions.RetriveUserFunction
从认证信息中检索用户详情 根据认证类型和用户详情服务获取完整的用户信息
RetriveUserFunction - com.relaxed.oauth2.auth.functions中的接口
用户信息检索函数接口 用于自定义从认证信息中获取用户详情的逻辑 支持不同类型的认证方式,如用户名密码、短信验证码等

S

serialize(CustomOAuth2Exception, JsonGenerator, SerializerProvider) - 类 中的方法com.relaxed.oauth2.auth.exception.CustomOAuth2ExceptionJackson2Serializer
序列化OAuth2异常 将异常转换为统一的响应格式
setAuthenticated(boolean) - 类 中的方法com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationToken
设置认证状态 只能将令牌设置为未认证状态
setThrowableAnalyzer(ThrowableAnalyzer) - 类 中的方法com.relaxed.oauth2.auth.exception.CustomWebResponseExceptionTranslator
设置异常分析器
smsCodeAuthenticationProvider(UserDetailsService) - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置手机验证码认证提供者 用于处理手机验证码认证
SmsCodeAuthenticationProvider - com.relaxed.oauth2.auth.extension.mobile中的类
短信验证码认证提供者 实现基于手机验证码的用户认证逻辑 通过手机号获取用户信息并完成认证
SmsCodeAuthenticationProvider() - 类 的构造器com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationProvider
 
SmsCodeAuthenticationToken - com.relaxed.oauth2.auth.extension.mobile中的类
手机验证码认证令牌 用于封装手机验证码认证过程中的认证信息 包含手机号(principal)和验证码(credentials)等信息
SmsCodeAuthenticationToken(Object, Object) - 类 的构造器com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationToken
创建未认证的令牌
SmsCodeAuthenticationToken(Object, Object, Collection<? extends GrantedAuthority>) - 类 的构造器com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationToken
创建已认证的令牌
SmsCodeTokenGranter - com.relaxed.oauth2.auth.extension.mobile中的类
手机验证码授权者 实现基于手机验证码的OAuth2授权流程 支持通过手机号和验证码进行用户认证并获取访问令牌
SmsCodeTokenGranter(AuthorizationServerTokenServices, ClientDetailsService, OAuth2RequestFactory, AuthenticationManager, PreValidator) - 类 的构造器com.relaxed.oauth2.auth.extension.mobile.SmsCodeTokenGranter
构造函数
supports(Class<?>) - 类 中的方法com.relaxed.oauth2.auth.extension.mobile.SmsCodeAuthenticationProvider
判断是否支持指定的认证类型
supportType() - 接口 中的方法com.relaxed.oauth2.auth.extension.PreValidator
获取支持的验证类型 用于标识该验证器可以处理的验证类型,如短信验证码、图片验证码等

T

TokenGrantBuilder - com.relaxed.oauth2.auth.builder中的类
Token授予构建器 用于构建和组合OAuth2的Token授予者 支持默认授权类型和自定义授权类型的组合
TokenGrantBuilder(AuthenticationManager) - 类 的构造器com.relaxed.oauth2.auth.builder.TokenGrantBuilder
构造函数 使用默认的空Token授予者提供者列表
TokenGrantBuilder(AuthenticationManager, List<TokenGranterProvider>) - 类 的构造器com.relaxed.oauth2.auth.builder.TokenGrantBuilder
构造函数 使用指定的Token授予者提供者列表
tokenGrantBuilder(AuthenticationManager, PreValidatorHolder) - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置授权类型构建器 默认处理OAuth2规范的5种授权类型 支持自定义添加其他授权类型
TokenGranterProvider - com.relaxed.oauth2.auth.builder中的接口
Token授予者提供者接口 用于自定义Token授予者的创建逻辑 支持扩展OAuth2的授权类型和Token授予方式
TokenServicesBuilder - com.relaxed.oauth2.auth.builder中的类
Token服务构建器 用于构建和配置OAuth2的Token服务 支持自定义Token存储、刷新Token和认证管理
TokenServicesBuilder() - 类 的构造器com.relaxed.oauth2.auth.builder.TokenServicesBuilder
 
tokenServicesBuilder(UserDetailsService, AuthorizationInfoHandle, TokenStore) - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置令牌服务构建器 用于构建令牌服务
tokenStore() - 类 中的方法com.relaxed.oauth2.auth.configuration.AuthorizationAutoConfiguration
配置令牌存储 默认使用内存存储,可自定义实现
translate(Exception) - 类 中的方法com.relaxed.oauth2.auth.exception.CustomWebResponseExceptionTranslator
转换异常为OAuth2异常响应 根据异常类型转换为对应的OAuth2异常

U

upgradeEncoding(String) - 类 中的静态方法com.relaxed.oauth2.auth.util.PasswordUtils
检查密码是否需要升级加密算法 用于密码加密算法的平滑升级

V

validate(Map<String, String>) - 接口 中的方法com.relaxed.oauth2.auth.extension.PreValidator
执行验证操作 根据传入的参数进行验证,如果验证失败则抛出相应的异常
A B C D E G I J L M O P R S T U V 
跳过导航链接

Copyright © 2025. All rights reserved.