public static interface Credential.AccessMethod
Modifier and Type | Method | Description |
---|---|---|
String |
getAccessTokenFromRequest(com.google.api.client.http.HttpRequest request) |
Retrieve the original access token in the HTTP request, as provided in
intercept(HttpRequest, String) . |
void |
intercept(com.google.api.client.http.HttpRequest request,
String accessToken) |
Intercept the HTTP request during
Credential.intercept(HttpRequest) right before the
HTTP request executes by providing the access token. |
void intercept(com.google.api.client.http.HttpRequest request, String accessToken) throws IOException
Credential.intercept(HttpRequest)
right before the
HTTP request executes by providing the access token.request
- HTTP requestaccessToken
- access tokenIOException
String getAccessTokenFromRequest(com.google.api.client.http.HttpRequest request)
intercept(HttpRequest, String)
.request
- HTTP requestnull
for noneCopyright © 2011–2019 Google. All rights reserved.