@Deprecated public class RemoteTokenServices extends Object implements ResourceServerTokenServices
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Deprecated.
|
| Constructor and Description |
|---|
RemoteTokenServices()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
OAuth2Authentication |
loadAuthentication(String accessToken)
Deprecated.
Load the credentials for the specified access token.
|
OAuth2AccessToken |
readAccessToken(String accessToken)
Deprecated.
Retrieve the full access token details from just the value.
|
void |
setAccessTokenConverter(AccessTokenConverter accessTokenConverter)
Deprecated.
|
void |
setAdditionalParameters(Map<String,String> additionalParameters)
Deprecated.
|
void |
setCheckTokenEndpointUrl(String checkTokenEndpointUrl)
Deprecated.
|
void |
setClientId(String clientId)
Deprecated.
|
void |
setClientSecret(String clientSecret)
Deprecated.
|
void |
setRestTemplate(org.springframework.web.client.RestOperations restTemplate)
Deprecated.
|
void |
setTokenName(String tokenName)
Deprecated.
|
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 void setAdditionalParameters(Map<String,String> additionalParameters)
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 © 2021. All rights reserved.