Class SpringSocialTokenServices
- java.lang.Object
- org.springframework.boot.autoconfigure.security.oauth2.resource.SpringSocialTokenServices
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
public class SpringSocialTokenServices extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
ResourceServerTokenServices
backed by Spring Social.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description SpringSocialTokenServices(org.springframework.social.connect.support.OAuth2ConnectionFactory<?> connectionFactory, String clientId)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.provider.OAuth2Authentication
loadAuthentication(String accessToken)
org.springframework.security.oauth2.common.OAuth2AccessToken
readAccessToken(String accessToken)
Constructor Detail
SpringSocialTokenServices
public SpringSocialTokenServices(org.springframework.social.connect.support.OAuth2ConnectionFactory<?> connectionFactory, String clientId)
Method Detail
loadAuthentication
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessToken) throws org.springframework.security.core.AuthenticationException, org.springframework.security.oauth2.common.exceptions.InvalidTokenException
- Specified by:
loadAuthentication
in interfaceorg.springframework.security.oauth2.provider.token.ResourceServerTokenServices
- Throws:
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.common.exceptions.InvalidTokenException
readAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String accessToken)
- Specified by:
readAccessToken
in interfaceorg.springframework.security.oauth2.provider.token.ResourceServerTokenServices