public class SpringSocialTokenServices extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
ResourceServerTokenServices
backed by Spring Social.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.ResourceServerTokenServices
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
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.