public class GoogleCredentialsAccessTokenProvider extends Object
| Constructor and Description |
|---|
GoogleCredentialsAccessTokenProvider() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.auth.oauth2.AccessToken |
getAccessToken()
Attempt to load an Access Token using Google Credentials.
|
public GoogleCredentialsAccessTokenProvider()
public static com.google.auth.oauth2.AccessToken getAccessToken()
throws IOException
Note that we use a special environment variable of our own in addition to any environment variable that the ADC loading uses (GOOGLE_APPLICATION_CREDENTIALS) in case there is a need for the user to use the latter env var for some other purpose.
IOExceptionCopyright © 2017. All rights reserved.