public final class JwtClientAssertionAuthenticationProvider
extends java.lang.Object
implements org.springframework.security.authentication.AuthenticationProvider
AuthenticationProvider implementation used for OAuth 2.0 Client Authentication,
which authenticates the (JWT) client_assertion parameter.AuthenticationProvider,
OAuth2ClientAuthenticationToken,
RegisteredClientRepository,
OAuth2AuthorizationService| 构造器和说明 |
|---|
JwtClientAssertionAuthenticationProvider(RegisteredClientRepository registeredClientRepository,
OAuth2AuthorizationService authorizationService)
Constructs a
JwtClientAssertionAuthenticationProvider using the provided parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
boolean |
supports(java.lang.Class<?> authentication) |
public JwtClientAssertionAuthenticationProvider(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService)
JwtClientAssertionAuthenticationProvider using the provided parameters.registeredClientRepository - the repository of registered clientsauthorizationService - the authorization servicepublic org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate 在接口中 org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic boolean supports(java.lang.Class<?> authentication)
supports 在接口中 org.springframework.security.authentication.AuthenticationProvider