@Beta
public static class ComputeCredential.Builder
extends com.google.api.client.auth.oauth2.Credential.Builder
Beta
Implementation is not thread-safe.
Constructor and Description |
---|
Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory) |
Modifier and Type | Method and Description |
---|---|
ComputeCredential.Builder |
addRefreshListener(com.google.api.client.auth.oauth2.CredentialRefreshListener refreshListener) |
ComputeCredential |
build() |
ComputeCredential.Builder |
setClientAuthentication(com.google.api.client.http.HttpExecuteInterceptor clientAuthentication) |
ComputeCredential.Builder |
setClock(com.google.api.client.util.Clock clock) |
ComputeCredential.Builder |
setJsonFactory(com.google.api.client.json.JsonFactory jsonFactory) |
ComputeCredential.Builder |
setRefreshListeners(Collection<com.google.api.client.auth.oauth2.CredentialRefreshListener> refreshListeners) |
ComputeCredential.Builder |
setRequestInitializer(com.google.api.client.http.HttpRequestInitializer requestInitializer) |
ComputeCredential.Builder |
setTokenServerEncodedUrl(String tokenServerEncodedUrl) |
ComputeCredential.Builder |
setTokenServerUrl(com.google.api.client.http.GenericUrl tokenServerUrl) |
ComputeCredential.Builder |
setTransport(com.google.api.client.http.HttpTransport transport) |
public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory)
transport
- HTTP transportjsonFactory
- JSON factorypublic ComputeCredential build()
build
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setTransport(com.google.api.client.http.HttpTransport transport)
setTransport
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setClock(com.google.api.client.util.Clock clock)
setClock
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setJsonFactory(com.google.api.client.json.JsonFactory jsonFactory)
setJsonFactory
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setTokenServerUrl(com.google.api.client.http.GenericUrl tokenServerUrl)
setTokenServerUrl
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setTokenServerEncodedUrl(String tokenServerEncodedUrl)
setTokenServerEncodedUrl
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setClientAuthentication(com.google.api.client.http.HttpExecuteInterceptor clientAuthentication)
setClientAuthentication
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setRequestInitializer(com.google.api.client.http.HttpRequestInitializer requestInitializer)
setRequestInitializer
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder addRefreshListener(com.google.api.client.auth.oauth2.CredentialRefreshListener refreshListener)
addRefreshListener
in class com.google.api.client.auth.oauth2.Credential.Builder
public ComputeCredential.Builder setRefreshListeners(Collection<com.google.api.client.auth.oauth2.CredentialRefreshListener> refreshListeners)
setRefreshListeners
in class com.google.api.client.auth.oauth2.Credential.Builder
Copyright © 2010–2019 Google. All rights reserved.