Interface GoogleProcessor

All Superinterfaces:
OAuthProviderProcessor<GoogleAccessTokenContext>
All Known Implementing Classes:
GoogleProcessorImpl

public interface GoogleProcessor extends OAuthProviderProcessor<GoogleAccessTokenContext>
OAuth processor for calling Google+ operations
  • Method Details

    • obtainUserInfo

      com.google.api.services.oauth2.model.Userinfo obtainUserInfo(GoogleAccessTokenContext accessTokenContext)
      Obtain informations about user from Google+ .
      Parameters:
      accessTokenContext - google access token
      Returns:
      userinfo object with filled info about this user
    • getOAuth2Instance

      com.google.api.services.oauth2.Oauth2 getOAuth2Instance(GoogleAccessTokenContext accessTokenContext)
      Obtain instance of Google Oauth2 object, which can be used to call various operations in Google API (obtain user informations, obtain informations about your access token etc)
      Parameters:
      accessTokenContext -
      Returns:
      oauth2 object
    • getPlusService

      com.google.api.services.plus.Plus getPlusService(GoogleAccessTokenContext accessTokenContext)
      Obtain instance of Google (@link Plus} object, which can be used to call various operations in Google+ API (Obtain list of your friends, obtain your statuses, comments, activities etc...)
      Parameters:
      accessTokenContext -
      Returns:
      plus object
    • refreshToken

      void refreshToken(GoogleAccessTokenContext accessTokenContext)
      Refresh Google+ token. Note that argument needs to have "refreshToken" available. The "accessToken" will be refreshed and updated directly on this instance of accessTokenContext
      Parameters:
      accessTokenContext -