Package | Description |
---|---|
com.google.api.client.auth.oauth2 |
Implementation of the OAuth 2.0 Authorization
Framework.
|
Modifier and Type | Method and Description |
---|---|
Credential.Builder |
Credential.Builder.addRefreshListener(CredentialRefreshListener refreshListener)
Adds a listener for refresh token results.
|
Credential.Builder |
Credential.Builder.setClientAuthentication(HttpExecuteInterceptor clientAuthentication)
Sets the client authentication or
null for none (see
TokenRequest.setClientAuthentication(HttpExecuteInterceptor) ). |
Credential.Builder |
Credential.Builder.setClock(Clock clock)
Sets the clock to use for expiration checks.
|
Credential.Builder |
Credential.Builder.setJsonFactory(JsonFactory jsonFactory)
Sets the JSON factory to use for parsing response for refresh token request or
null
if not refreshing tokens. |
Credential.Builder |
Credential.Builder.setRefreshListeners(Collection<CredentialRefreshListener> refreshListeners)
Sets the listeners for refresh token results.
|
Credential.Builder |
Credential.Builder.setRequestInitializer(HttpRequestInitializer requestInitializer)
Sets the HTTP request initializer for refresh token requests to the token server or
null for none. |
Credential.Builder |
Credential.Builder.setTokenServerEncodedUrl(String tokenServerEncodedUrl)
Sets the encoded token server URL or
null if not refreshing tokens. |
Credential.Builder |
Credential.Builder.setTokenServerUrl(GenericUrl tokenServerUrl)
Sets the token server URL or
null if not refreshing tokens. |
Credential.Builder |
Credential.Builder.setTransport(HttpTransport transport)
Sets the HTTP transport for executing refresh token request or
null if not refreshing
tokens. |
Constructor and Description |
---|
Credential(Credential.Builder builder) |
Copyright © 2011–2020 Google. All rights reserved.