public static interface Credential.AccessMethod
Modifier and Type | Method and Description |
---|---|
String |
getAccessTokenFromRequest(HttpRequest request)
Retrieve the original access token in the HTTP request, as provided in
intercept(HttpRequest, String) . |
void |
intercept(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(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(HttpRequest request)
intercept(HttpRequest, String)
.request
- HTTP requestnull
for noneCopyright © 2011–2021 Google. All rights reserved.