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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection
<String> private Collection
<String> private HttpTransportFactory
Fields inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
quotaProjectId, universeDomain
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Builder()
protected
Builder
(ComputeEngineCredentials credentials) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setDefaultScopes
(Collection<String> defaultScopes) setHttpTransportFactory
(HttpTransportFactory transportFactory) setQuotaProjectId
(String quotaProjectId) setScopes
(Collection<String> scopes) setUniverseDomain
(String universeDomain) Methods inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
getQuotaProjectId, getUniverseDomain, setAccessToken
Methods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
Field Details
-
transportFactory
-
scopes
-
defaultScopes
-
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
-
Method Details
-
setHttpTransportFactory
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory) -
setScopes
-
setDefaultScopes
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setDefaultScopes(Collection<String> defaultScopes) -
setUniverseDomain
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setUniverseDomain(String universeDomain) - Overrides:
setUniverseDomain
in classGoogleCredentials.Builder
-
setQuotaProjectId
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setQuotaProjectId(String quotaProjectId) - Overrides:
setQuotaProjectId
in classGoogleCredentials.Builder
-
getHttpTransportFactory
-
getScopes
-
getDefaultScopes
-
build
- Overrides:
build
in classGoogleCredentials.Builder
-