Class GoogleTokenService

  • All Implemented Interfaces:
    org.springframework.security.oauth2.provider.token.ResourceServerTokenServices

    @Component
    public class GoogleTokenService
    extends java.lang.Object
    implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication​(java.lang.String token)  
      org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GoogleTokenService

        public GoogleTokenService​(@Value("${oauth.clientId}")
                                  java.lang.String clientId,
                                  PlayerService playerService)
    • Method Detail

      • loadAuthentication

        public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication​(java.lang.String token)
                                                                                             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​(java.lang.String s)
        Specified by:
        readAccessToken in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices