public final class OAuth2AuthorizationCodeAuthenticationProvider extends AbstractAuthenticationProvider
AuthenticationProvider implementation for the OAuth 2.0 Authorization Code Grant.OAuth2AuthorizationCodeAuthenticationToken,
OAuth2AccessTokenAuthenticationToken,
OAuth2AuthorizationCodeRequestAuthenticationProvider,
OAuth2AuthorizationService,
OAuth2TokenGenerator,
Section 4.1 Authorization Code Grant,
Section 4.1.3 Access Token Request| 构造器和说明 |
|---|
OAuth2AuthorizationCodeAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)
Constructs an
OAuth2AuthorizationCodeAuthenticationProvider using the provided parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
boolean |
supports(Class<?> authentication) |
createOAuth2AccessToken, createOAuth2AccessTokenAuthenticationToken, createOidcIdToken, creatOAuth2RefreshToken, idTokenAdditionalParameters, validateScopespublic OAuth2AuthorizationCodeAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService,
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)
OAuth2AuthorizationCodeAuthenticationProvider using the provided parameters.authorizationService - the authorization servicetokenGenerator - the token generatorpublic org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
org.springframework.security.core.AuthenticationExceptionpublic boolean supports(Class<?> authentication)
Copyright © 2023 Dromara. All rights reserved.