public class SpringSocialTokenServices extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
ResourceServerTokenServices backed by Spring Social.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
SpringSocialTokenServices(org.springframework.social.connect.support.OAuth2ConnectionFactory<?> connectionFactory,
String clientId) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(String accessToken) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(String accessToken) |
public SpringSocialTokenServices(org.springframework.social.connect.support.OAuth2ConnectionFactory<?> connectionFactory,
String clientId)
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessToken) throws AuthenticationException, org.springframework.security.oauth2.common.exceptions.InvalidTokenException
loadAuthentication in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServicesAuthenticationExceptionorg.springframework.security.oauth2.common.exceptions.InvalidTokenExceptionpublic org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String accessToken)
readAccessToken in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServicesCopyright © 2016 Pivotal Software, Inc.. All rights reserved.