@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 |
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 OAuth2Authentication loadAuthentication(String accessToken) throws org.springframework.security.core.AuthenticationException, InvalidTokenException
ResourceServerTokenServices
loadAuthentication
in interface ResourceServerTokenServices
accessToken
- 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)
ResourceServerTokenServices
readAccessToken
in interface ResourceServerTokenServices
accessToken
- the token valueCopyright © 2019. All rights reserved.