public class FacebookTokenServices
extends org.springframework.security.oauth2.provider.token.RemoteTokenServices
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
FacebookTokenServices() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(String accessToken) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(String accessToken) |
void |
setAccessTokenConverter(org.springframework.security.oauth2.provider.token.AccessTokenConverter accessTokenConverter) |
void |
setCheckTokenEndpointUrl(String checkTokenEndpointUrl) |
void |
setRestTemplate(org.springframework.web.client.RestOperations restTemplate) |
void |
setTokenName(String tokenName) |
public void setRestTemplate(org.springframework.web.client.RestOperations restTemplate)
setRestTemplate
in class org.springframework.security.oauth2.provider.token.RemoteTokenServices
public void setCheckTokenEndpointUrl(String checkTokenEndpointUrl)
setCheckTokenEndpointUrl
in class org.springframework.security.oauth2.provider.token.RemoteTokenServices
public void setAccessTokenConverter(org.springframework.security.oauth2.provider.token.AccessTokenConverter accessTokenConverter)
setAccessTokenConverter
in class org.springframework.security.oauth2.provider.token.RemoteTokenServices
public void setTokenName(String tokenName)
setTokenName
in class org.springframework.security.oauth2.provider.token.RemoteTokenServices
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessToken) throws org.springframework.security.core.AuthenticationException, org.springframework.security.oauth2.common.exceptions.InvalidTokenException
loadAuthentication
in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
loadAuthentication
in class org.springframework.security.oauth2.provider.token.RemoteTokenServices
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.common.exceptions.InvalidTokenException
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String accessToken)
readAccessToken
in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
readAccessToken
in class org.springframework.security.oauth2.provider.token.RemoteTokenServices
Copyright © 2013–2022. All rights reserved.