Class 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 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 interface org.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 interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices