public class SpringSocialTokenServices
extends java.lang.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,
java.lang.String clientId) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(java.lang.String accessToken) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(java.lang.String accessToken) |
public SpringSocialTokenServices(org.springframework.social.connect.support.OAuth2ConnectionFactory<?> connectionFactory, java.lang.String clientId)
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(java.lang.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
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.common.exceptions.InvalidTokenException
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(java.lang.String accessToken)
readAccessToken
in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices