public class BearerTokenAuthenticationProvider extends java.lang.Object implements AuthenticationProvider<BearerTokenAuthenticationToken>
| Constructor and Description |
|---|
BearerTokenAuthenticationProvider(ResourceServerTokenServices tokenServices) |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(BearerTokenAuthenticationToken bearer)
进行身份验证
|
boolean |
supports(java.lang.Class<? extends Authentication> authentication)
判断是否支持此身份认证逻辑
|
public BearerTokenAuthenticationProvider(ResourceServerTokenServices tokenServices)
public boolean supports(java.lang.Class<? extends Authentication> authentication)
AuthenticationProvidersupports in interface AuthenticationProvider<BearerTokenAuthenticationToken>public Authentication authenticate(BearerTokenAuthenticationToken bearer) throws AuthenticationException
AuthenticationProviderauthenticate in interface AuthenticationProvider<BearerTokenAuthenticationToken>AuthenticationException