public class RemoteTokenServices extends Object implements ResourceServerTokenServices
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
RemoteTokenServices() |
| Modifier and Type | Method and Description |
|---|---|
OAuth2Authentication |
loadAuthentication(String accessToken)
Load the credentials for the specified access token.
|
OAuth2AccessToken |
readAccessToken(String accessToken)
Retrieve the full access token details from just the value.
|
void |
setAccessTokenConverter(AccessTokenConverter accessTokenConverter) |
void |
setCheckTokenEndpointUrl(String checkTokenEndpointUrl) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setRestTemplate(org.springframework.web.client.RestOperations restTemplate) |
void |
setTokenName(String tokenName) |
public void setRestTemplate(org.springframework.web.client.RestOperations restTemplate)
public void setCheckTokenEndpointUrl(String checkTokenEndpointUrl)
public void setClientId(String clientId)
public void setClientSecret(String clientSecret)
public void setAccessTokenConverter(AccessTokenConverter accessTokenConverter)
public void setTokenName(String tokenName)
public OAuth2Authentication loadAuthentication(String accessToken) throws org.springframework.security.core.AuthenticationException, InvalidTokenException
ResourceServerTokenServicesloadAuthentication in interface ResourceServerTokenServicesaccessToken - The access token value.org.springframework.security.core.AuthenticationException - If the access token is expiredInvalidTokenException - if the token isn't validpublic OAuth2AccessToken readAccessToken(String accessToken)
ResourceServerTokenServicesreadAccessToken in interface ResourceServerTokenServicesaccessToken - the token valueCopyright © 2019. All rights reserved.