| Package | Description |
|---|---|
| com.google.api.client.googleapis.auth.oauth2 |
Google's additions to OAuth 2.0 authorization as specified in Using OAuth 2.0 to Access Google
APIs.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleCredential |
GoogleCredential.Builder.build() |
GoogleCredential |
GoogleCredential.createScoped(Collection<String> scopes)
Beta For credentials that require scopes, creates a copy of the credential with the specified scopes. |
static GoogleCredential |
GoogleCredential.fromStream(InputStream credentialStream)
Beta Return a credential defined by a Json file. |
static GoogleCredential |
GoogleCredential.fromStream(InputStream credentialStream,
HttpTransport transport,
JsonFactory jsonFactory)
Beta Return a credential defined by a Json file. |
static GoogleCredential |
GoogleCredential.getApplicationDefault()
Beta Returns the Application Default Credentials. |
static GoogleCredential |
GoogleCredential.getApplicationDefault(HttpTransport transport,
JsonFactory jsonFactory)
Beta Returns the Application Default Credentials. |
GoogleCredential |
GoogleCredential.setAccessToken(String accessToken) |
GoogleCredential |
GoogleCredential.setExpirationTimeMilliseconds(Long expirationTimeMilliseconds) |
GoogleCredential |
GoogleCredential.setExpiresInSeconds(Long expiresIn) |
GoogleCredential |
GoogleCredential.setFromTokenResponse(TokenResponse tokenResponse) |
GoogleCredential |
GoogleCredential.setRefreshToken(String refreshToken) |
Copyright © 2010-2014 Google. All Rights Reserved.