public class TokenAuthenticationProvider extends Object implements AuthenticationProvider<TokenAuthenticationRequest>, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
TokenAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Authentication |
authenticate(TokenAuthenticationRequest tokenAuthenticationRequest) |
IdentityProvider |
getIdentityProvider() |
TokenManager |
getTokenManager() |
void |
revoke(Authentication authentication) |
void |
setIdentityProvider(IdentityProvider identityProvider) |
void |
setTokenManager(TokenManager tokenManager) |
boolean |
supports(AuthenticationRequest request) |
public void setIdentityProvider(IdentityProvider identityProvider)
public TokenManager getTokenManager()
public void setTokenManager(TokenManager tokenManager)
public IdentityProvider getIdentityProvider()
public boolean supports(AuthenticationRequest request)
supports in interface AuthenticationProvider<TokenAuthenticationRequest>public Authentication authenticate(TokenAuthenticationRequest tokenAuthenticationRequest)
authenticate in interface AuthenticationProvider<TokenAuthenticationRequest>public void revoke(Authentication authentication)
revoke in interface AuthenticationProvider<TokenAuthenticationRequest>Copyright © 2018. All rights reserved.