public class GAppsAuthorization implements HttpRequestInitializer
This class is used by the various Google APIs to provide the bearer authorization token whenever a request is sent to one of Google's API endpoints. This class will generally not be used by someone outside of BASIS unless wrapping a Google API in-house.
Modifier and Type | Field and Description |
---|---|
BBjString | AuthorizationToken! An authorization token obtained via Google OAuth 2.0 |
Constructor and Description |
---|
GAppsAuthorization(BBjString authorizationToken!) This constructor takes an authorization token obtained through OAuth 2.0 with Google. The token will be used in the authorization header of the Google API client that uses this class. |
Modifier and Type | Method and Description |
---|---|
void | initialize(com.google.api.client.http.HttpRequest request!) This method is called by a Google API in order to set the Authorization Header on API requests. Generally, this method will not be invoked directly. |
public BBjString AuthorizationToken!
An authorization token obtained via Google OAuth 2.0