public abstract class AbstractAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
Description: 抽象的认证Provider
提取公共的通用认证基类,方便设置返回Token的信息设置
| 构造器和说明 |
|---|
AbstractAuthenticationProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.security.oauth2.core.OAuth2AccessToken |
createOAuth2AccessToken(org.springframework.security.oauth2.server.authorization.token.DefaultOAuth2TokenContext.Builder tokenContextBuilder,
org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder authorizationBuilder,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator,
String errorUri) |
protected org.springframework.security.oauth2.server.authorization.authentication.OAuth2AccessTokenAuthenticationToken |
createOAuth2AccessTokenAuthenticationToken(org.springframework.security.core.Authentication source,
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AccessTokenAuthenticationToken destination) |
protected org.springframework.security.oauth2.core.oidc.OidcIdToken |
createOidcIdToken(org.springframework.security.oauth2.server.authorization.token.DefaultOAuth2TokenContext.Builder tokenContextBuilder,
org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder authorizationBuilder,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator,
String errorUri,
Set<String> requestedScopes) |
protected org.springframework.security.oauth2.core.OAuth2RefreshToken |
creatOAuth2RefreshToken(org.springframework.security.oauth2.server.authorization.token.DefaultOAuth2TokenContext.Builder tokenContextBuilder,
org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder authorizationBuilder,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator,
String errorUri,
org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken clientPrincipal,
org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient) |
protected Map<String,Object> |
idTokenAdditionalParameters(org.springframework.security.oauth2.core.oidc.OidcIdToken idToken) |
protected Set<String> |
validateScopes(Set<String> requestedScopes,
org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient) |
protected org.springframework.security.oauth2.core.OAuth2AccessToken createOAuth2AccessToken(org.springframework.security.oauth2.server.authorization.token.DefaultOAuth2TokenContext.Builder tokenContextBuilder,
org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder authorizationBuilder,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator,
String errorUri)
protected org.springframework.security.oauth2.core.OAuth2RefreshToken creatOAuth2RefreshToken(org.springframework.security.oauth2.server.authorization.token.DefaultOAuth2TokenContext.Builder tokenContextBuilder,
org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder authorizationBuilder,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator,
String errorUri,
org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken clientPrincipal,
org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient)
protected org.springframework.security.oauth2.core.oidc.OidcIdToken createOidcIdToken(org.springframework.security.oauth2.server.authorization.token.DefaultOAuth2TokenContext.Builder tokenContextBuilder,
org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder authorizationBuilder,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator,
String errorUri,
Set<String> requestedScopes)
protected Map<String,Object> idTokenAdditionalParameters(org.springframework.security.oauth2.core.oidc.OidcIdToken idToken)
protected Set<String> validateScopes(Set<String> requestedScopes, org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient)
protected org.springframework.security.oauth2.server.authorization.authentication.OAuth2AccessTokenAuthenticationToken createOAuth2AccessTokenAuthenticationToken(org.springframework.security.core.Authentication source,
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AccessTokenAuthenticationToken destination)
Copyright © 2023 Dromara. All rights reserved.