public class TokenGrantBuilder extends Object
| 构造器和说明 |
|---|
TokenGrantBuilder(org.springframework.security.authentication.AuthenticationManager authenticationManager)
构造函数 使用默认的空Token授予者提供者列表
|
TokenGrantBuilder(org.springframework.security.authentication.AuthenticationManager authenticationManager,
List<TokenGranterProvider> tokenGranterProviders)
构造函数 使用指定的Token授予者提供者列表
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.oauth2.provider.TokenGranter |
build(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
构建Token授予者 组合默认授权类型和自定义授权类型的Token授予者
|
protected List<org.springframework.security.oauth2.provider.TokenGranter> |
defaultTokenGranters(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
获取默认Token授予者列表 包含OAuth2规范的5种授权类型: 1.
|
org.springframework.security.authentication.AuthenticationManager |
getAuthenticationManager()
获取认证管理器
|
public TokenGrantBuilder(org.springframework.security.authentication.AuthenticationManager authenticationManager)
authenticationManager - 认证管理器public TokenGrantBuilder(org.springframework.security.authentication.AuthenticationManager authenticationManager,
List<TokenGranterProvider> tokenGranterProviders)
authenticationManager - 认证管理器tokenGranterProviders - Token授予者提供者列表public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
public org.springframework.security.oauth2.provider.TokenGranter build(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
endpoints - 授权服务器端点配置器protected List<org.springframework.security.oauth2.provider.TokenGranter> defaultTokenGranters(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
endpoints - 授权服务器端点配置器Copyright © 2025. All rights reserved.