Example usage for Java com.google.api.client.googleapis.auth.oauth2 GoogleCredential fields, constructors, methods, implement or subclass
The text is from its open source code.
GoogleCredential() Constructor with the ability to access protected resources, but not refresh tokens. |
GoogleCredential | createScoped(Collection Beta For credentials that require scopes, creates a copy of the credential with the specified scopes. |
boolean | createScopedRequired() Beta Indicates whether the credential requires scopes to be specified by calling createScoped before use. |
GoogleCredential | fromStream(InputStream credentialStream) Beta Return a credential defined by a Json file. |
GoogleCredential | fromStream(InputStream credentialStream, HttpTransport transport, JsonFactory jsonFactory) Beta Return a credential defined by a Json file. |
GoogleCredential | getApplicationDefault() Beta Returns the Application Default Credentials. |
GoogleCredential | getApplicationDefault(HttpTransport transport, JsonFactory jsonFactory) Beta Returns the Application Default Credentials. |
String | getServiceAccountId() Returns the service account ID (typically an e-mail address) or null if not using the service account flow. |
PrivateKey | getServiceAccountPrivateKey() Returns the private key to use with the service account flow or null if not using the service account flow. |
String | getServiceAccountPrivateKeyId() Beta Returns the ID of the private key to use with the service account flow or null if not using the service account flow. |
GoogleCredential | setAccessToken(String accessToken) |
GoogleCredential | setExpirationTimeMilliseconds(Long expirationTimeMilliseconds) |
GoogleCredential | setExpiresInSeconds(Long expiresIn) |
GoogleCredential | setFromTokenResponse(TokenResponse tokenResponse) |
GoogleCredential | setRefreshToken(String refreshToken) |