类 SpringSocialTokenServices

  • 所有已实现的接口:
    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.
    从以下版本开始:
    1.3.0
    • 构造器详细资料

      • SpringSocialTokenServices

        public SpringSocialTokenServices​(org.springframework.social.connect.support.OAuth2ConnectionFactory<?> connectionFactory,
                                         String clientId)
    • 方法详细资料

      • loadAuthentication

        public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication​(String accessToken)
                                                                                             throws org.springframework.security.core.AuthenticationException,
                                                                                                    org.springframework.security.oauth2.common.exceptions.InvalidTokenException
        指定者:
        loadAuthentication 在接口中 org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
        抛出:
        org.springframework.security.core.AuthenticationException
        org.springframework.security.oauth2.common.exceptions.InvalidTokenException
      • readAccessToken

        public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken​(String accessToken)
        指定者:
        readAccessToken 在接口中 org.springframework.security.oauth2.provider.token.ResourceServerTokenServices