Index

A B C D E F G H I J K L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

ACCESS_DENIED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Access denied 访问被拒绝
accessToken() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns the value of the accessToken record component.
accessToken() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the access token 获取访问令牌
accessToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set the access token 设置访问令牌
ADDRESS - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope
Address scope - access to address claim Address 范围 - 访问地址声明
addScope(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Add a default scope 添加默认范围
all() - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Get all registered providers 获取所有已注册的 Provider
apple(String, String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create an Apple OAuth2 client builder 创建 Apple OAuth2 客户端构建器
APPLE - Static variable in class cloud.opencode.base.oauth2.provider.Providers
Apple Sign In Provider Apple 登录提供者
aud() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the aud record component.
audience() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Get the first audience 获取第一个受众
audience() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the audience 获取受众
AUTHORIZATION_CODE - Enum constant in enum class cloud.opencode.base.oauth2.grant.GrantType
Authorization Code Grant 授权码模式
AUTHORIZATION_DENIED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Authorization denied by user 用户拒绝授权
AUTHORIZATION_FAILED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Authorization failed 授权失败
AUTHORIZATION_PENDING - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Authorization pending (device code flow) 授权待定(设备码流程)
authorizationEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the authorizationEndpoint record component.
authorizationEndpoint() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
authorizationEndpoint() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Get the authorization endpoint URL 获取授权端点 URL
authorizationEndpoint(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the authorization endpoint 设置授权端点
authorizationEndpoint(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the authorization endpoint 设置授权端点
authorizationFailed(String) - Static method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create authorization failed exception 创建授权失败异常
azp() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the azp record component.

B

birthdate() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the birthdate record component.
birthdate(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
build() - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Build the DeviceCodeResponse 构建 DeviceCodeResponse
build() - Method in class cloud.opencode.base.oauth2.http.HttpClientFactory.Builder
Build the HTTP client 构建 HTTP 客户端
build() - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Build the OAuth2Client 构建 OAuth2Client
build() - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Build the OAuth2Config 构建 OAuth2Config
build() - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Build the OAuth2Token 构建 OAuth2Token
build() - Method in class cloud.opencode.base.oauth2.oidc.OidcClient.Builder
Build the OidcClient 构建 OidcClient
build() - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Build the OidcConfig 构建 OidcConfig
build() - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
build() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Build the CustomProvider 构建 CustomProvider
builder() - Static method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Create a new builder 创建新的构建器
builder() - Static method in class cloud.opencode.base.oauth2.http.HttpClientFactory
Create a builder for customizing the HTTP client 创建用于自定义 HTTP 客户端的构建器
builder() - Static method in class cloud.opencode.base.oauth2.OAuth2Client
Create a new builder 创建新的构建器
builder() - Static method in record class cloud.opencode.base.oauth2.OAuth2Config
Create a new builder 创建新的构建器
builder() - Static method in record class cloud.opencode.base.oauth2.OAuth2Token
Create a new builder 创建新的构建器
builder() - Static method in class cloud.opencode.base.oauth2.oidc.OidcClient
Create a new builder 创建新的构建器
builder() - Static method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Create a new builder 创建新的构建器
builder() - Static method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Create a new builder 创建新的构建器
builder() - Static method in class cloud.opencode.base.oauth2.provider.CustomProvider
Create a new builder 创建新的构建器
builder(OAuth2Token) - Static method in record class cloud.opencode.base.oauth2.OAuth2Token
Create a builder from existing token 从现有令牌创建构建器
Builder() - Constructor for class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.http.HttpClientFactory.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.OAuth2Client.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.OAuth2Config.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.OAuth2Token.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.oidc.OidcClient.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
Builder() - Constructor for class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
 

C

calculateS256Challenge(String) - Static method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Calculate S256 challenge from verifier 从验证器计算 S256 挑战
CALENDAR - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Google Calendar full access Google 日历完全访问
CALENDAR_READONLY - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Google Calendar read-only Google 日历只读
CALENDARS_READ - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Calendars read access 日历读取访问
CALENDARS_READWRITE - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Calendars read/write access 日历读写访问
canValidateIssuer() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Check if issuer validation is possible 检查是否可以进行发行者验证
canValidateSignature() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Check if signature validation is possible 检查是否可以进行签名验证
challenge() - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Returns the value of the challenge record component.
claim(String, Object) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
claims() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the claims record component.
claims() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the claims record component.
claims(Map) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
clear() - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Clear all providers 清除所有 Provider
clear() - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Clear all tokens 清除所有 Token
client() - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a custom OAuth2 client builder 创建自定义 OAuth2 客户端构建器
client(OAuth2Provider) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create an OAuth2 client builder with a custom provider 使用自定义提供者创建 OAuth2 客户端构建器
CLIENT_CREDENTIALS - Enum constant in enum class cloud.opencode.base.oauth2.grant.GrantType
Client Credentials Grant 客户端凭证模式
clientId() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the clientId record component.
clientId(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the client ID 设置客户端 ID
clientId(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the client ID 设置客户端 ID
clientSecret() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the clientSecret record component.
clientSecret(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the client secret 设置客户端密钥
clientSecret(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the client secret 设置客户端密钥
clockSkew() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the clockSkew record component.
clockSkew(Duration) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Set the clock skew tolerance 设置时钟偏差容忍度
close() - Method in class cloud.opencode.base.oauth2.http.OAuth2HttpClient
 
close() - Method in class cloud.opencode.base.oauth2.OAuth2Client
 
close() - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
 
close() - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Close the token manager and release resources 关闭 Token 管理器并释放资源
close() - Method in class cloud.opencode.base.oauth2.token.TokenRefresher
 
cloud.opencode.base.oauth2 - module cloud.opencode.base.oauth2
OpenCode Base OAuth2 Module OpenCode 基础 OAuth2 模块
cloud.opencode.base.oauth2 - package cloud.opencode.base.oauth2
 
cloud.opencode.base.oauth2.exception - package cloud.opencode.base.oauth2.exception
 
cloud.opencode.base.oauth2.grant - package cloud.opencode.base.oauth2.grant
 
cloud.opencode.base.oauth2.http - package cloud.opencode.base.oauth2.http
 
cloud.opencode.base.oauth2.oidc - package cloud.opencode.base.oauth2.oidc
 
cloud.opencode.base.oauth2.pkce - package cloud.opencode.base.oauth2.pkce
 
cloud.opencode.base.oauth2.provider - package cloud.opencode.base.oauth2.provider
 
cloud.opencode.base.oauth2.token - package cloud.opencode.base.oauth2.token
 
code() - Method in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Get the error code number 获取错误码数字
code() - Method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Get the error code number 获取错误码数字
CODE_EXPIRED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Authorization code expired 授权码已过期
combine(String...) - Static method in class cloud.opencode.base.oauth2.OAuth2Scope
Combine multiple scopes into a set 将多个范围组合成一个集合
combine(Set...) - Static method in class cloud.opencode.base.oauth2.OAuth2Scope
Combine scope sets 组合范围集合
config() - Method in class cloud.opencode.base.oauth2.OAuth2Client
Get the configuration 获取配置
config(OAuth2Config) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the configuration 设置配置
configBuilder() - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a new OAuth2 configuration builder 创建新的 OAuth2 配置构建器
connectTimeout() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the connectTimeout record component.
connectTimeout(Duration) - Method in class cloud.opencode.base.oauth2.http.HttpClientFactory.Builder
Set the connection timeout 设置连接超时
connectTimeout(Duration) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the connect timeout 设置连接超时
connectTimeoutSeconds(long) - Method in class cloud.opencode.base.oauth2.http.HttpClientFactory.Builder
Set connection timeout in seconds 设置连接超时(秒)
contains(String) - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Check if a provider is registered 检查 Provider 是否已注册
create() - Static method in class cloud.opencode.base.oauth2.http.HttpClientFactory
Create an HTTP client with default settings 使用默认设置创建 HTTP 客户端
create(OAuth2Config) - Static method in class cloud.opencode.base.oauth2.http.HttpClientFactory
Create an HTTP client from OAuth2 configuration 从 OAuth2 配置创建 HTTP 客户端
create(Duration, Duration) - Static method in class cloud.opencode.base.oauth2.http.HttpClientFactory
Create an HTTP client with custom timeouts 使用自定义超时创建 HTTP 客户端
createdAt() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns the value of the createdAt record component.
createdAt(Instant) - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Set the creation time 设置创建时间
CustomProvider - Class in cloud.opencode.base.oauth2.provider
Custom OAuth2 Provider 自定义 OAuth2 Provider
CustomProvider.Builder - Class in cloud.opencode.base.oauth2.provider
CustomProvider Builder CustomProvider 构建器

D

DEFAULT - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Default application scope 默认应用程序范围
DEFAULT_CONNECT_TIMEOUT - Static variable in class cloud.opencode.base.oauth2.http.HttpClientFactory
Default connect timeout 默认连接超时
DEFAULT_INTERVAL - Static variable in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Default polling interval in seconds 默认轮询间隔(秒)
DEFAULT_READ_TIMEOUT - Static variable in class cloud.opencode.base.oauth2.http.HttpClientFactory
Default read timeout 默认读取超时
defaultOidc() - Static method in class cloud.opencode.base.oauth2.OAuth2Scope
Get default OIDC scopes 获取默认 OIDC 范围
defaults() - Static method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Create default OIDC config 创建默认 OIDC 配置
defaultScopes() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
defaultScopes() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Get the default scopes for this provider 获取此提供者的默认权限范围
defaultScopes(String...) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the default scopes 设置默认范围
defaultScopes(Set) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the default scopes 设置默认范围
delete(String) - Method in class cloud.opencode.base.oauth2.token.FileTokenStore
 
delete(String) - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
 
delete(String) - Method in interface cloud.opencode.base.oauth2.token.TokenStore
Delete a token by key 通过键删除令牌
deleteAll() - Method in class cloud.opencode.base.oauth2.token.FileTokenStore
 
deleteAll() - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
 
deleteAll() - Method in interface cloud.opencode.base.oauth2.token.TokenStore
Delete all stored tokens 删除所有存储的令牌
details() - Method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Get additional details 获取附加详情
DEVICE_CODE - Enum constant in enum class cloud.opencode.base.oauth2.grant.GrantType
Device Code Grant (RFC 8628) 设备码模式
DEVICE_CODE_NOT_SUPPORTED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Device code endpoint not supported 设备码端点不支持
deviceAuthorizationEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the deviceAuthorizationEndpoint record component.
deviceAuthorizationEndpoint() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
deviceAuthorizationEndpoint() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Get the device authorization endpoint URL 获取设备授权端点 URL
deviceAuthorizationEndpoint(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the device authorization endpoint 设置设备授权端点
deviceAuthorizationEndpoint(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the device authorization endpoint 设置设备授权端点
deviceCode() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns the value of the deviceCode record component.
deviceCode(String) - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Set the device code 设置设备码
DeviceCodeResponse - Record Class in cloud.opencode.base.oauth2.grant
Device Code Response Record 设备码响应记录
DeviceCodeResponse(String, String, String, String, int, int, Instant) - Constructor for record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Compact constructor with validation 带验证的紧凑构造器
DeviceCodeResponse.Builder - Class in cloud.opencode.base.oauth2.grant
DeviceCodeResponse Builder DeviceCodeResponse 构建器
displayName() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Get display name (name or preferredUsername or email) 获取显示名称(姓名或首选用户名或电子邮件)
DRIVE - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Google Drive full access Google 云端硬盘完全访问
DRIVE_READONLY - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Google Drive read-only Google 云端硬盘只读

E

email() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the email claim 获取电子邮件声明
email() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the email record component.
email(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
EMAIL - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope
Email scope - access to email and email_verified claims Email 范围 - 访问电子邮件和电子邮件验证声明
emailVerified() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the emailVerified record component.
emailVerified(Boolean) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
equals(Object) - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
 
equals(Object) - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
errorCode() - Method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Get the error code 获取错误码
exchangeCode(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Exchange authorization code for token 使用授权码交换 Token
exchangeCode(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Exchange authorization code for OIDC token 使用授权码交换 OIDC 令牌
exchangeCode(String, String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Exchange authorization code for token with PKCE verifier 使用授权码和 PKCE 验证器交换 Token
exchangeCode(String, String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Exchange authorization code for OIDC token with PKCE verifier 使用授权码和 PKCE 验证器交换 OIDC 令牌
exchangeCode(String, String, String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Exchange authorization code for OIDC token with validation 使用授权码交换带有验证的 OIDC 令牌
exists(String) - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
 
exists(String) - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Check if a token exists for the key 检查是否存在该键的 Token
exists(String) - Method in interface cloud.opencode.base.oauth2.token.TokenStore
Check if a token exists 检查令牌是否存在
exp() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the exp record component.
expiration() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the expiration time 获取过期时间
expiresAt() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Get the expiration time 获取过期时间
expiresAt() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns the value of the expiresAt record component.
expiresAt(Instant) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set the expiration time 设置过期时间
expiresIn() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns the value of the expiresIn record component.
expiresIn(int) - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Set the expiration time in seconds 设置过期时间(秒)
expiresIn(long) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set expires in seconds from now 设置从现在起的过期秒数

F

facebook(String, String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a Facebook OAuth2 client builder 创建 Facebook OAuth2 客户端构建器
FACEBOOK - Static variable in class cloud.opencode.base.oauth2.provider.Providers
Facebook Login Provider Facebook 登录提供者
familyName() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the familyName record component.
familyName(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
FILES_READ - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Files read access 文件读取访问
FILES_READWRITE - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Files read/write access 文件读写访问
fileTokenStore(String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a file-based token store in the user's home directory 在用户主目录中创建文件令牌存储
fileTokenStore(Path) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a file-based token store 创建文件令牌存储
FileTokenStore - Class in cloud.opencode.base.oauth2.token
File-based Token Store 文件 Token 存储
FileTokenStore(Path) - Constructor for class cloud.opencode.base.oauth2.token.FileTokenStore
Create a new file token store 创建新的文件令牌存储
find(String) - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Find a provider by name 按名称查找 Provider
from(OAuth2Token) - Static method in class cloud.opencode.base.oauth2.oidc.OidcToken
Create from OAuth2 token by parsing the ID token 通过解析 ID Token 从 OAuth2 令牌创建
from(OAuth2Provider) - Static method in class cloud.opencode.base.oauth2.provider.CustomProvider
Create a builder from an existing provider 从现有 Provider 创建构建器
fromConfig(OAuth2Config) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create an OAuth2 client from configuration 从配置创建 OAuth2 客户端
fromJson(String) - Static method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Parse user info from JSON response 从 JSON 响应解析用户信息
fromValue(String) - Static method in enum class cloud.opencode.base.oauth2.grant.GrantType
Parse grant type from string value 从字符串值解析授权类型

G

gender() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the gender record component.
gender(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
generate() - Static method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Generate a new PKCE challenge with S256 method 使用 S256 方法生成新的 PKCE 挑战
generate(int) - Static method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Generate a new PKCE challenge with custom verifier length 使用自定义验证器长度生成新的 PKCE 挑战
generateNonce() - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Generate a nonce for authorization request 为授权请求生成 nonce
generatePkce() - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Generate a PKCE challenge 生成 PKCE 挑战
get(String) - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Get a provider by name 按名称获取 Provider
get(String) - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Get a stored token 获取存储的 Token
get(String, Map) - Method in class cloud.opencode.base.oauth2.http.OAuth2HttpClient
Send a GET request 发送 GET 请求
getAuthorizationUrl(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Generate authorization URL 生成授权 URL
getAuthorizationUrl(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get authorization URL 获取授权 URL
getAuthorizationUrl(String, PkceChallenge) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Generate authorization URL with PKCE 生成带有 PKCE 的授权 URL
getAuthorizationUrl(String, PkceChallenge) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get authorization URL with PKCE 获取带有 PKCE 的授权 URL
getAuthorizationUrl(String, PkceChallenge, String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get authorization URL with PKCE and nonce 获取带有 PKCE 和 nonce 的授权 URL
getAuthorizationUrl(String, PkceChallenge, Map) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Generate authorization URL with PKCE and additional parameters 生成带有 PKCE 和附加参数的授权 URL
getBestVerificationUri() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Get the best verification URI (complete if available, otherwise basic) 获取最佳验证 URI(如果可用则返回完整的,否则返回基本的)
getClaim(String) - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Get a custom claim value 获取自定义声明值
getClaim(String) - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Get a custom claim value 获取自定义声明值
getClaimAsString(String) - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Get a custom claim value as string 获取自定义声明值作为字符串
getClaimAsString(String) - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Get a custom claim value as string 获取自定义声明值作为字符串
getClientCredentialsToken() - Method in class cloud.opencode.base.oauth2.OAuth2Client
Get token using client credentials 使用客户端凭证获取 Token
getOrObtain(String, Supplier) - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Get a valid token or obtain a new one 获取有效的 Token 或获取新的
getStoredToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Get a stored token 获取存储的 Token
getStoredToken(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get a stored token 获取存储的令牌
getUserInfo(OAuth2Token) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Get user info using a token 使用 Token 获取用户信息
getUserInfo(OAuth2Token) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get user info using access token 使用访问令牌获取用户信息
getUserInfo(OidcToken) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get user info 获取用户信息
getValidToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Get a valid token, refreshing if necessary 获取有效的 Token,必要时刷新
getValidToken(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get a valid OIDC token, refreshing if necessary 获取有效的 OIDC 令牌,必要时刷新
getValidToken(String) - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Get a valid token, refreshing if necessary 获取有效的 Token,必要时刷新
GIST - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.GitHub
Gist access Gist 访问
github(String, String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a GitHub OAuth2 client builder 创建 GitHub OAuth2 客户端构建器
GITHUB - Static variable in class cloud.opencode.base.oauth2.provider.Providers
GitHub OAuth Provider GitHub OAuth 提供者
givenName() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the givenName record component.
givenName(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
global() - Static method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Get the global registry with built-in providers 获取带有内置提供者的全局注册表
GMAIL_FULL - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Gmail full access Gmail 完全访问
GMAIL_MODIFY - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Gmail modify access Gmail 修改访问
GMAIL_READONLY - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Gmail read-only access Gmail 只读访问
GMAIL_SEND - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Google
Gmail send access Gmail 发送访问
google(String, String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a Google OAuth2 client builder 创建 Google OAuth2 客户端构建器
GOOGLE - Static variable in class cloud.opencode.base.oauth2.provider.Providers
Google OAuth2/OIDC Provider Google OAuth2/OIDC 提供者
grantType() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the grantType record component.
grantType(GrantType) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the grant type 设置授权类型
grantType(GrantType) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the grant type 设置授权类型
GrantType - Enum Class in cloud.opencode.base.oauth2.grant
OAuth2 Grant Type Enum OAuth2 授权类型枚举

H

hasAudience(String) - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Check if the token has the specified audience 检查令牌是否具有指定的受众
hasDeviceAuthorizationEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Check if device authorization endpoint is configured 检查是否配置了设备授权端点
hashCode() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns a hash code value for this object.
hashCode() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
 
hashCode() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Returns a hash code value for this object.
hashCode() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
hasIdToken() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Check if has ID token (OIDC) 检查是否有 ID 令牌(OIDC)
hasIdToken() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Check if ID token is present 检查是否存在 ID Token
hasRefreshToken() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Check if has refresh token 检查是否有刷新令牌
hasRefreshToken() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Check if token has refresh token 检查令牌是否有刷新令牌
hasRevocationEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Check if revocation endpoint is configured 检查是否配置了撤销端点
hasUserInfoEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Check if user info endpoint is configured 检查是否配置了用户信息端点
hasValidToken(String) - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Check if a valid token exists for the key 检查是否存在该键的有效 Token
hasVerificationUriComplete() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Check if verification URI complete is available 检查完整验证 URI 是否可用
httpClient(OAuth2HttpClient) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the HTTP client 设置 HTTP 客户端
HttpClientFactory - Class in cloud.opencode.base.oauth2.http
HTTP Client Factory HTTP 客户端工厂
HttpClientFactory.Builder - Class in cloud.opencode.base.oauth2.http
HTTP Client Builder HTTP 客户端构建器

I

iat() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the iat record component.
idToken() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns the value of the idToken record component.
idToken() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the raw ID token string 获取原始 ID Token 字符串
idToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set the ID token (OIDC) 设置 ID 令牌(OIDC)
idTokenClaims() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the parsed ID token claims 获取已解析的 ID Token 声明
inMemoryTokenStore() - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create an in-memory token store 创建内存令牌存储
InMemoryTokenStore - Class in cloud.opencode.base.oauth2.token
In-Memory Token Store 内存 Token 存储
InMemoryTokenStore() - Constructor for class cloud.opencode.base.oauth2.token.InMemoryTokenStore
Create a new in-memory token store 创建新的内存令牌存储
interval() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns the value of the interval record component.
interval(int) - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Set the polling interval in seconds 设置轮询间隔(秒)
INVALID_CONFIG - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Invalid OAuth2 configuration 无效的 OAuth2 配置
INVALID_GRANT - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Invalid authorization grant 无效的授权许可
INVALID_PKCE_VERIFIER - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Invalid PKCE verifier 无效的 PKCE 验证器
INVALID_RESPONSE - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Invalid response 无效的响应
INVALID_SCOPE - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Invalid scope 无效的权限范围
INVALID_STATE - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Invalid state parameter 无效的 state 参数
invalidConfig(String) - Static method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create invalid config exception 创建无效配置异常
isAuthorizationCodeFlow() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Check if this config is for authorization code flow 检查此配置是否用于授权码流程
isClientCredentialsFlow() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Check if this config is for client credentials flow 检查此配置是否用于客户端凭证流程
isClosed() - Method in class cloud.opencode.base.oauth2.token.TokenRefresher
Check if the refresher is closed 检查刷新器是否已关闭
isDeviceCodeFlow() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Check if this config is for device code flow 检查此配置是否用于设备码流程
isEmailVerified() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Check if email is verified 检查电子邮件是否已验证
isEmailVerified() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Check if email is verified 检查电子邮件是否已验证
isEmpty() - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Check if the registry is empty 检查注册表是否为空
isExpired() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Check if the device code has expired 检查设备码是否已过期
isExpired() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Check if token is expired 检查令牌是否已过期
isExpired() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Check if the token is expired 检查令牌是否已过期
isExpired() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Check if token is expired 检查令牌是否已过期
isExpired(OAuth2Token) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Check if a token is expired 检查令牌是否已过期
isExpiringSoon(OAuth2Token, Duration) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Check if a token is expiring soon 检查令牌是否即将过期
isExpiringSoon(Duration) - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Check if token is expiring soon 检查令牌是否即将过期
isExpiringSoon(Duration) - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Check if token is expiring soon 检查令牌是否即将过期
isIdTokenExpired() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Check if the ID token is expired 检查 ID Token 是否已过期
isNotYetValid() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Check if the token is not yet valid 检查令牌是否尚未生效
isPhoneNumberVerified() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Check if phone number is verified 检查电话号码是否已验证
isPlain() - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Check if this challenge uses plain method 检查此挑战是否使用 plain 方法
iss() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the iss record component.
isS256() - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Check if this challenge uses S256 method 检查此挑战是否使用 S256 方法
issuedAt() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns the value of the issuedAt record component.
issuedAt() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the issued at time 获取发行时间
issuedAt(Instant) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set the issued at time 设置签发时间
issuer() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the issuer record component.
issuer() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the issuer 获取发行者
issuer() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
Get the issuer 获取发行者
issuer(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Set the expected issuer 设置预期的发行者
issuer(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the issuer 设置发行者
isValid() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Check if the token is currently valid (not expired and not before nbf) 检查令牌当前是否有效(未过期且不在 nbf 之前)
isValid() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Check if the ID token is currently valid 检查 ID Token 当前是否有效

J

jti() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the jti record component.
jwksUri() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the jwksUri record component.
jwksUri() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
Get the JWKS URI 获取 JWKS URI
jwksUri(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Set the JWKS URI for signature validation 设置用于签名验证的 JWKS URI
jwksUri(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the JWKS URI 设置 JWKS URI
JwtClaims - Record Class in cloud.opencode.base.oauth2.oidc
JWT Claims JWT 声明
JwtClaims(String, String, List, Instant, Instant, Instant, String, String, String, Map) - Constructor for record class cloud.opencode.base.oauth2.oidc.JwtClaims
Compact constructor 紧凑构造器

K

keys() - Method in class cloud.opencode.base.oauth2.token.FileTokenStore
 
keys() - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
 
keys() - Method in interface cloud.opencode.base.oauth2.token.TokenStore
Get all stored keys 获取所有存储的键

L

load(String) - Method in class cloud.opencode.base.oauth2.token.FileTokenStore
 
load(String) - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
 
load(String) - Method in interface cloud.opencode.base.oauth2.token.TokenStore
Load a token by key 通过键加载令牌
locale() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the locale record component.
locale(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 

M

MAIL_READ - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Mail read access 邮件读取访问
MAIL_READWRITE - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Mail read/write access 邮件读写访问
MAIL_SEND - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
Mail send access 邮件发送访问
message() - Method in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Get the error message 获取错误消息
method() - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Returns the value of the method record component.
METHOD_PLAIN - Static variable in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
PKCE plain method name (not recommended) PKCE plain 方法名称(不推荐)
METHOD_S256 - Static variable in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
PKCE S256 method name PKCE S256 方法名称
microsoft(String, String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a Microsoft OAuth2 client builder 创建 Microsoft OAuth2 客户端构建器
microsoft(String, String, String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Create a Microsoft OAuth2 client builder for a specific tenant 为特定租户创建 Microsoft OAuth2 客户端构建器
MICROSOFT - Static variable in class cloud.opencode.base.oauth2.provider.Providers
Microsoft Identity Platform Provider Microsoft 身份平台提供者
microsoftTenant(String) - Static method in class cloud.opencode.base.oauth2.provider.Providers
Create a custom provider for a specific Microsoft tenant 为特定 Microsoft 租户创建自定义提供者
middleName() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the middleName record component.
middleName(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
MISSING_CLIENT_ID - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Client ID is required Client ID 是必需的
MISSING_CLIENT_SECRET - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Client secret is required Client Secret 是必需的
MISSING_REDIRECT_URI - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Redirect URI is required Redirect URI 是必需的
MISSING_TOKEN_ENDPOINT - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token endpoint is required Token 端点是必需的

N

name() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the name claim 获取名称声明
name() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the name record component.
name() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
name() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Get the provider name 获取提供者名称
name(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
name(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the provider name 设置 Provider 名称
names() - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Get all registered provider names 获取所有已注册的 Provider 名称
nbf() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the nbf record component.
needsRefresh(OAuth2Token) - Method in class cloud.opencode.base.oauth2.token.TokenRefresher
Check if a token needs refresh 检查 Token 是否需要刷新
NETWORK_ERROR - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Network error 网络错误
networkError(Throwable) - Static method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create network error exception 创建网络错误异常
nickname() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the nickname record component.
nickname(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
nonce() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the nonce record component.
nonce() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the nonce 获取 nonce

O

oauth2Client() - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get the underlying OAuth2 client 获取底层 OAuth2 客户端
oauth2Client(OAuth2Client) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient.Builder
Set the OAuth2 client 设置 OAuth2 客户端
OAuth2Client - Class in cloud.opencode.base.oauth2
OAuth2 Client OAuth2 客户端
OAuth2Client.Builder - Class in cloud.opencode.base.oauth2
OAuth2Client Builder OAuth2Client 构建器
OAuth2Config - Record Class in cloud.opencode.base.oauth2
OAuth2 Configuration Record OAuth2 配置记录
OAuth2Config(String, String, String, String, String, String, String, String, Set, GrantType, boolean, Duration, Duration, Duration) - Constructor for record class cloud.opencode.base.oauth2.OAuth2Config
Compact constructor with validation 带验证的紧凑构造器
OAuth2Config.Builder - Class in cloud.opencode.base.oauth2
OAuth2Config Builder OAuth2Config 构建器
OAuth2ErrorCode - Enum Class in cloud.opencode.base.oauth2.exception
OAuth2 Error Code Enum OAuth2 错误码枚举
OAuth2Exception - Exception Class in cloud.opencode.base.oauth2.exception
OAuth2 Exception OAuth2 异常
OAuth2Exception(OAuth2ErrorCode) - Constructor for exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create exception with error code 使用错误码创建异常
OAuth2Exception(OAuth2ErrorCode, String) - Constructor for exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create exception with error code and details 使用错误码和详情创建异常
OAuth2Exception(OAuth2ErrorCode, String, Throwable) - Constructor for exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create exception with error code, details and cause 使用错误码、详情和原因创建异常
OAuth2Exception(OAuth2ErrorCode, Throwable) - Constructor for exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create exception with error code and cause 使用错误码和原因创建异常
OAuth2HttpClient - Class in cloud.opencode.base.oauth2.http
OAuth2 HTTP Client OAuth2 HTTP 客户端
OAuth2HttpClient() - Constructor for class cloud.opencode.base.oauth2.http.OAuth2HttpClient
Create a new OAuth2 HTTP client with default settings 使用默认设置创建新的 OAuth2 HTTP 客户端
OAuth2HttpClient(OAuth2Config) - Constructor for class cloud.opencode.base.oauth2.http.OAuth2HttpClient
Create a new OAuth2 HTTP client from config 从配置创建新的 OAuth2 HTTP 客户端
OAuth2HttpClient(Duration, Duration) - Constructor for class cloud.opencode.base.oauth2.http.OAuth2HttpClient
Create a new OAuth2 HTTP client with custom timeouts 使用自定义超时创建新的 OAuth2 HTTP 客户端
OAuth2Provider - Interface in cloud.opencode.base.oauth2.provider
OAuth2 Provider Interface OAuth2 Provider 接口
OAuth2Scope - Class in cloud.opencode.base.oauth2
OAuth2 Scope OAuth2 权限范围
OAuth2Scope.GitHub - Class in cloud.opencode.base.oauth2
GitHub-specific scopes GitHub 特定范围
OAuth2Scope.Google - Class in cloud.opencode.base.oauth2
Google-specific scopes Google 特定范围
OAuth2Scope.Microsoft - Class in cloud.opencode.base.oauth2
Microsoft-specific scopes Microsoft 特定范围
oauth2Token() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the underlying OAuth2 token 获取底层 OAuth2 令牌
OAuth2Token - Record Class in cloud.opencode.base.oauth2
OAuth2 Token Record OAuth2 Token 记录
OAuth2Token(String, String, String, String, Set, Instant, Instant) - Constructor for record class cloud.opencode.base.oauth2.OAuth2Token
Compact constructor with validation 带验证的紧凑构造器
OAuth2Token.Builder - Class in cloud.opencode.base.oauth2
OAuth2Token Builder OAuth2Token 构建器
OFFLINE_ACCESS - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope
Offline access scope - request refresh token Offline access 范围 - 请求刷新令牌
OidcClient - Class in cloud.opencode.base.oauth2.oidc
OpenID Connect Client OpenID Connect 客户端
OidcClient.Builder - Class in cloud.opencode.base.oauth2.oidc
OidcClient Builder OidcClient 构建器
oidcConfig() - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Get the OIDC configuration 获取 OIDC 配置
oidcConfig(OidcConfig) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient.Builder
Set the OIDC configuration 设置 OIDC 配置
OidcConfig - Record Class in cloud.opencode.base.oauth2.oidc
OpenID Connect Configuration OpenID Connect 配置
OidcConfig(String, String, String, boolean, boolean, boolean, boolean, Duration, Set, Set) - Constructor for record class cloud.opencode.base.oauth2.oidc.OidcConfig
Compact constructor 紧凑构造器
OidcConfig.Builder - Class in cloud.opencode.base.oauth2.oidc
OidcConfig Builder OidcConfig 构建器
OidcToken - Class in cloud.opencode.base.oauth2.oidc
OpenID Connect Token OpenID Connect 令牌
OidcToken(OAuth2Token, JwtClaims) - Constructor for class cloud.opencode.base.oauth2.oidc.OidcToken
Create an OIDC token 创建 OIDC 令牌
OPENID - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope
OpenID scope - required for OIDC OpenID 范围 - OIDC 必需
OpenOAuth2 - Class in cloud.opencode.base.oauth2
OAuth2 Facade Class OAuth2 门面类
ownedOAuth2Client(OAuth2Client) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient.Builder
Set the OAuth2 client (owned) 设置 OAuth2 客户端(拥有)

P

parse(String) - Static method in class cloud.opencode.base.oauth2.OAuth2Scope
Parse space-separated scope string to set 将空格分隔的范围字符串解析为集合
parse(String) - Static method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Parse a JWT token (without signature verification) 解析 JWT 令牌(不验证签名)
parseJwt(String) - Static method in class cloud.opencode.base.oauth2.OpenOAuth2
Parse a JWT token without signature verification 解析 JWT 令牌(不验证签名)
PHONE - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope
Phone scope - access to phone_number and phone_number_verified claims Phone 范围 - 访问电话号码和电话号码验证声明
phoneNumber() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the phoneNumber record component.
phoneNumber(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
phoneNumberVerified() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the phoneNumberVerified record component.
phoneNumberVerified(Boolean) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
picture() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the picture URL claim 获取头像 URL 声明
picture() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the picture record component.
picture(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
PKCE_ERROR - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
PKCE error PKCE 错误
PKCE_REQUIRED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
PKCE is required PKCE 是必需的
PkceChallenge - Record Class in cloud.opencode.base.oauth2.pkce
PKCE (Proof Key for Code Exchange) Challenge PKCE 挑战
PkceChallenge(String, String, String) - Constructor for record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Creates an instance of a PkceChallenge record class.
plain(String) - Static method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Create a plain PKCE challenge (not recommended, use S256 instead) 创建 plain PKCE 挑战(不推荐,请使用 S256)
pollDeviceToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Poll for token using device code 使用设备码轮询 Token
postForm(String, Map) - Method in class cloud.opencode.base.oauth2.http.OAuth2HttpClient
Send a POST request with form-encoded body 发送带有表单编码正文的 POST 请求
postForm(String, Map, Map) - Method in class cloud.opencode.base.oauth2.http.OAuth2HttpClient
Send a POST request with form-encoded body and headers 发送带有表单编码正文和头的 POST 请求
preferredUsername() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the preferredUsername record component.
preferredUsername(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
profile() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the profile record component.
profile(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
PROFILE - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope
Profile scope - access to user profile claims Profile 范围 - 访问用户资料声明
provider(OAuth2Provider) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the provider 设置提供者
PROVIDER_ERROR - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
OAuth2 provider error OAuth2 Provider 错误
PROVIDER_NOT_FOUND - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
OAuth2 provider not found OAuth2 Provider 未找到
ProviderRegistry - Class in cloud.opencode.base.oauth2.provider
OAuth2 Provider Registry OAuth2 Provider 注册表
ProviderRegistry() - Constructor for class cloud.opencode.base.oauth2.provider.ProviderRegistry
Create a new empty registry 创建新的空注册表
Providers - Class in cloud.opencode.base.oauth2.provider
Built-in OAuth2 Providers 内置 OAuth2 提供者
PUBLIC_REPO - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.GitHub
Public repo access 公共仓库访问

R

READ_ORG - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.GitHub
Read organization membership 读取组织成员资格
READ_USER - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.GitHub
Read user profile 读取用户资料
readTimeout() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the readTimeout record component.
readTimeout(Duration) - Method in class cloud.opencode.base.oauth2.http.HttpClientFactory.Builder
Set the read timeout 设置读取超时
readTimeout(Duration) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the read timeout 设置读取超时
readTimeoutSeconds(long) - Method in class cloud.opencode.base.oauth2.http.HttpClientFactory.Builder
Set read timeout in seconds 设置读取超时(秒)
redirectUri() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the redirectUri record component.
redirectUri(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the redirect URI 设置重定向 URI
redirectUri(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the redirect URI 设置重定向 URI
refresh(OAuth2Token) - Method in class cloud.opencode.base.oauth2.token.TokenRefresher
Refresh a token 刷新 Token
REFRESH_TOKEN - Enum constant in enum class cloud.opencode.base.oauth2.grant.GrantType
Refresh Token Grant 刷新令牌模式
refreshAsync(OAuth2Token) - Method in class cloud.opencode.base.oauth2.token.TokenRefresher
Refresh a token asynchronously 异步刷新 Token
refreshThreshold() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the refreshThreshold record component.
refreshThreshold() - Method in class cloud.opencode.base.oauth2.token.TokenRefresher
Get the refresh threshold 获取刷新阈值
refreshThreshold(Duration) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the refresh threshold 设置刷新阈值
refreshToken() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns the value of the refreshToken record component.
refreshToken() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the refresh token 获取刷新令牌
refreshToken(OAuth2Token) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Refresh a token 刷新 Token
refreshToken(OidcToken) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Refresh an OIDC token 刷新 OIDC 令牌
refreshToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Refresh a token 刷新 Token
refreshToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set the refresh token 设置刷新令牌
register(OAuth2Provider) - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Register a provider 注册 Provider
register(String, OAuth2Provider) - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Register a provider with a custom name 使用自定义名称注册 Provider
remainingSeconds() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Get remaining time in seconds 获取剩余时间(秒)
remainingTime() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Get remaining valid time 获取剩余有效时间
remove(String) - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Remove a provider 移除 Provider
remove(String) - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Remove a token 移除 Token
removeExpired() - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
Remove expired tokens 移除过期的令牌
removeToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Remove a stored token 移除存储的 Token
removeToken(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Remove a stored token 移除存储的令牌
REPO - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.GitHub
Full repo access 完全仓库访问
requestDeviceCode() - Method in class cloud.opencode.base.oauth2.OAuth2Client
Request device code for device authorization flow 请求设备码以进行设备授权流程
requestedClaims() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the requestedClaims record component.
requestedClaims(String...) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Set requested claims 设置请求的声明
requiredClaims() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the requiredClaims record component.
requiredClaims(String...) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Set required claims 设置必需的声明
requiresPkce() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Check if PKCE is required for this provider 检查此提供者是否需要 PKCE
REVOCATION_NOT_SUPPORTED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token revocation not supported Token 撤销不支持
revocationEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the revocationEndpoint record component.
revocationEndpoint() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
revocationEndpoint() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Get the revocation endpoint URL 获取撤销端点 URL
revocationEndpoint(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the revocation endpoint 设置撤销端点
revocationEndpoint(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the revocation endpoint 设置撤销端点
revokeToken(OAuth2Token) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Revoke a token 撤销 Token
revokeToken(String) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Revoke a token 撤销 Token

S

save(String, OAuth2Token) - Method in class cloud.opencode.base.oauth2.token.FileTokenStore
 
save(String, OAuth2Token) - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
 
save(String, OAuth2Token) - Method in interface cloud.opencode.base.oauth2.token.TokenStore
Save a token with the given key 使用给定的键保存令牌
scope(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Add a scope 添加权限范围
scope(String) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Add a scope 添加权限范围
scopes() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the scopes record component.
scopes() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns the value of the scopes record component.
scopes() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the scopes 获取范围
scopes(String...) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Add scopes 添加权限范围
scopes(String...) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the scopes 设置权限范围
scopes(Set) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the scopes from a set 从集合设置权限范围
scopes(Set) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set the scopes 设置权限范围
scopeString(String) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set scopes from space-separated string 从空格分隔的字符串设置权限范围
SERVER_ERROR - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Server error 服务器错误
shared() - Static method in class cloud.opencode.base.oauth2.http.HttpClientFactory
Get the shared HTTP client instance 获取共享的 HTTP 客户端实例
size() - Method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Get the number of registered providers 获取已注册的 Provider 数量
size() - Method in class cloud.opencode.base.oauth2.token.InMemoryTokenStore
 
size() - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Get the number of stored tokens 获取存储的 Token 数量
size() - Method in interface cloud.opencode.base.oauth2.token.TokenStore
Get the number of stored tokens 获取存储的令牌数量
SLOW_DOWN - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Slow down polling (device code flow) 降低轮询频率(设备码流程)
store(String, OAuth2Token) - Method in interface cloud.opencode.base.oauth2.token.TokenManager
Store a token 存储 Token
storeToken(String, OAuth2Token) - Method in class cloud.opencode.base.oauth2.OAuth2Client
Store a token 存储 Token
storeToken(String, OidcToken) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Store a token 存储令牌
strict(String, String) - Static method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Create strict OIDC config with all validations enabled 创建启用所有验证的严格 OIDC 配置
sub() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns the value of the sub record component.
sub() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the sub record component.
sub(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
subject() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the subject (user ID) 获取主题(用户 ID)
supportsDeviceCode() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Check if this provider supports device code flow 检查此提供者是否支持设备码流程

T

TIMEOUT - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Request timeout 请求超时
toAuthorizationHeader() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Get authorization header value with token type 获取带令牌类型的授权头值
toBearerHeader() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Get Bearer authorization header value 获取 Bearer 授权头值
toBearerHeader() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
Get the Bearer authorization header 获取 Bearer 授权头
toConfig(String, String, String) - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Convert this provider to an OAuth2Config 将此提供者转换为 OAuth2Config
toConfig(String, String, String, Set) - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Convert this provider to an OAuth2Config with additional scopes 将此提供者转换为带有额外权限范围的 OAuth2Config
toConfig(String, String, String, Set, GrantType) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
toConfig(String, String, String, Set, GrantType) - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Convert this provider to an OAuth2Config with custom settings 将此提供者转换为带有自定义设置的 OAuth2Config
TOKEN_EXPIRED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token has expired Token 已过期
TOKEN_INVALID - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token is invalid Token 无效
TOKEN_NOT_FOUND - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token not found Token 未找到
TOKEN_PARSE_ERROR - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token parse error Token 解析错误
TOKEN_REFRESH_FAILED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Failed to refresh token Token 刷新失败
TOKEN_REVOKED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token has been revoked Token 已被撤销
TOKEN_STORE_ERROR - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Token store error Token 存储错误
tokenEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the tokenEndpoint record component.
tokenEndpoint() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
tokenEndpoint() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Get the token endpoint URL 获取令牌端点 URL
tokenEndpoint(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the token endpoint 设置令牌端点
tokenEndpoint(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the token endpoint 设置 Token 端点
tokenExpired() - Static method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create token expired exception 创建 Token 过期异常
tokenInvalid(String) - Static method in exception class cloud.opencode.base.oauth2.exception.OAuth2Exception
Create token invalid exception 创建 Token 无效异常
TokenManager - Interface in cloud.opencode.base.oauth2.token
Token Manager Interface Token 管理接口
TokenRefresher - Class in cloud.opencode.base.oauth2.token
Token Refresher Token 刷新器
TokenRefresher(OAuth2Config, OAuth2HttpClient) - Constructor for class cloud.opencode.base.oauth2.token.TokenRefresher
Create a new token refresher 创建新的 Token 刷新器
TokenRefresher(OAuth2Config, OAuth2HttpClient, Duration) - Constructor for class cloud.opencode.base.oauth2.token.TokenRefresher
Create a new token refresher with custom threshold 使用自定义阈值创建新的 Token 刷新器
tokenStore(TokenStore) - Method in class cloud.opencode.base.oauth2.OAuth2Client.Builder
Set the token store 设置 Token 存储
TokenStore - Interface in cloud.opencode.base.oauth2.token
Token Store Interface Token 存储接口
tokenType() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns the value of the tokenType record component.
tokenType(String) - Method in class cloud.opencode.base.oauth2.OAuth2Token.Builder
Set the token type 设置令牌类型
toString() - Method in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
 
toString() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns a string representation of this record class.
toString() - Method in enum class cloud.opencode.base.oauth2.grant.GrantType
 
toString() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.oauth2.OAuth2Token
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.oauth2.oidc.JwtClaims
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.oauth2.oidc.OidcToken
 
toString() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
toString(String...) - Static method in class cloud.opencode.base.oauth2.OAuth2Scope
Convert scopes to space-separated string 将范围转换为空格分隔的字符串
toString(Set) - Static method in class cloud.opencode.base.oauth2.OAuth2Scope
Convert scopes to space-separated string 将范围转换为空格分隔的字符串

U

usePkce() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the usePkce record component.
usePkce(boolean) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Enable or disable PKCE 启用或禁用 PKCE
USER - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.GitHub
Full user access 完全用户访问
USER_EMAIL - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.GitHub
Read user email 读取用户电子邮件
USER_READ - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
User read access 用户读取访问
USER_READ_ALL - Static variable in class cloud.opencode.base.oauth2.OAuth2Scope.Microsoft
User read all (admin) 用户读取全部(管理员)
userCode() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns the value of the userCode record component.
userCode(String) - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Set the user code 设置用户码
UserInfo - Record Class in cloud.opencode.base.oauth2.oidc
OpenID Connect User Info OpenID Connect 用户信息
UserInfo(String, String, String, String, String, String, String, String, String, String, String, Boolean, String, String, String, String, String, Boolean, Map) - Constructor for record class cloud.opencode.base.oauth2.oidc.UserInfo
Compact constructor 紧凑构造器
USERINFO_NOT_SUPPORTED - Enum constant in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
User info endpoint not supported 用户信息端点不支持
UserInfo.Builder - Class in cloud.opencode.base.oauth2.oidc
UserInfo Builder UserInfo 构建器
userInfoEndpoint() - Method in record class cloud.opencode.base.oauth2.OAuth2Config
Returns the value of the userInfoEndpoint record component.
userInfoEndpoint() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the userInfoEndpoint record component.
userInfoEndpoint() - Method in class cloud.opencode.base.oauth2.provider.CustomProvider
 
userInfoEndpoint() - Method in interface cloud.opencode.base.oauth2.provider.OAuth2Provider
Get the user info endpoint URL 获取用户信息端点 URL
userInfoEndpoint(String) - Method in class cloud.opencode.base.oauth2.OAuth2Config.Builder
Set the user info endpoint 设置用户信息端点
userInfoEndpoint(String) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Set the user info endpoint 设置用户信息端点
userInfoEndpoint(String) - Method in class cloud.opencode.base.oauth2.provider.CustomProvider.Builder
Set the user info endpoint 设置用户信息端点

V

validateAudience() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the validateAudience record component.
validateAudience(boolean) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Enable or disable audience validation 启用或禁用受众验证
validateExpiration() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the validateExpiration record component.
validateExpiration(boolean) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Enable or disable expiration validation 启用或禁用过期验证
validateIdToken() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the validateIdToken record component.
validateIdToken(boolean) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Enable or disable ID token validation 启用或禁用 ID Token 验证
validateIdToken(OidcToken, String) - Method in class cloud.opencode.base.oauth2.oidc.OidcClient
Validate ID token 验证 ID Token
validateNonce() - Method in record class cloud.opencode.base.oauth2.oidc.OidcConfig
Returns the value of the validateNonce record component.
validateNonce(boolean) - Method in class cloud.opencode.base.oauth2.oidc.OidcConfig.Builder
Enable or disable nonce validation 启用或禁用 nonce 验证
value() - Method in enum class cloud.opencode.base.oauth2.grant.GrantType
Get the grant type value for OAuth2 requests 获取用于 OAuth2 请求的授权类型值
valueOf(String) - Static method in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.oauth2.grant.GrantType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class cloud.opencode.base.oauth2.exception.OAuth2ErrorCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.oauth2.grant.GrantType
Returns an array containing the constants of this enum class, in the order they are declared.
verificationUri() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns the value of the verificationUri record component.
verificationUri(String) - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Set the verification URI 设置验证 URI
verificationUriComplete() - Method in record class cloud.opencode.base.oauth2.grant.DeviceCodeResponse
Returns the value of the verificationUriComplete record component.
verificationUriComplete(String) - Method in class cloud.opencode.base.oauth2.grant.DeviceCodeResponse.Builder
Set the complete verification URI (with user code embedded) 设置完整验证 URI(包含用户码)
verifier() - Method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Returns the value of the verifier record component.
verify(String, String, String) - Static method in record class cloud.opencode.base.oauth2.pkce.PkceChallenge
Verify that the verifier matches the challenge using constant-time comparison 使用恒定时间比较验证验证器是否匹配挑战

W

website() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the website record component.
website(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
withBuiltins() - Static method in class cloud.opencode.base.oauth2.provider.ProviderRegistry
Create a new registry with built-in providers 创建带有内置提供者的新注册表

Z

zoneinfo() - Method in record class cloud.opencode.base.oauth2.oidc.UserInfo
Returns the value of the zoneinfo record component.
zoneinfo(String) - Method in class cloud.opencode.base.oauth2.oidc.UserInfo.Builder
 
A B C D E F G H I J K L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form