Class OAuth2HeaderFactory

    • Constructor Detail

      • OAuth2HeaderFactory

        public OAuth2HeaderFactory​(String refreshToken,
                                   String clientId,
                                   String clientSecret)
    • Method Detail

      • refreshToken

        public void refreshToken()
        Description copied from interface: AuthHeaderFactory
        Gets the authorization header. Typically performs the login (interaction with google services). Should be called only when necessary (first login, google session expires)
        Specified by:
        refreshToken in interface AuthHeaderFactory
      • getCredential

        public com.google.api.client.googleapis.auth.oauth2.GoogleCredential getCredential()