Package com.google.auth.oauth2
Class ComputeEngineCredentials.Builder
- java.lang.Object
-
- com.google.auth.oauth2.OAuth2Credentials.Builder
-
- com.google.auth.oauth2.GoogleCredentials.Builder
-
- com.google.auth.oauth2.ComputeEngineCredentials.Builder
-
- Enclosing class:
- ComputeEngineCredentials
public static class ComputeEngineCredentials.Builder extends GoogleCredentials.Builder
-
-
Field Summary
-
Fields inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
quotaProjectId
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(ComputeEngineCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeEngineCredentials
build()
HttpTransportFactory
getHttpTransportFactory()
Collection<String>
getScopes()
ComputeEngineCredentials.Builder
setHttpTransportFactory(HttpTransportFactory transportFactory)
ComputeEngineCredentials.Builder
setScopes(Collection<String> scopes)
-
Methods inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
getQuotaProjectId, setAccessToken, setQuotaProjectId
-
Methods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(ComputeEngineCredentials credentials)
-
-
Method Detail
-
setHttpTransportFactory
public ComputeEngineCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
-
setScopes
public ComputeEngineCredentials.Builder setScopes(Collection<String> scopes)
-
getHttpTransportFactory
public HttpTransportFactory getHttpTransportFactory()
-
getScopes
public Collection<String> getScopes()
-
build
public ComputeEngineCredentials build()
- Overrides:
build
in classGoogleCredentials.Builder
-
-