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
Fields inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
quotaProjectId, universeDomain -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(ComputeEngineCredentials credentials) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Get theBindingEnforcementtype.@Nullable Collection<String>Get theGoogleAuthTransporttype.@Nullable HttpTransportFactory@Nullable Collection<String>setBindingEnforcement(@Nullable ComputeEngineCredentials.BindingEnforcement bindingEnforcement) Set theBindingEnforcementtype.setDefaultScopes(@Nullable Collection<String> defaultScopes) setGoogleAuthTransport(@Nullable ComputeEngineCredentials.GoogleAuthTransport transport) Set theGoogleAuthTransporttype.setHttpTransportFactory(@Nullable HttpTransportFactory transportFactory) setQuotaProjectId(@Nullable String quotaProjectId) setScopes(@Nullable Collection<String> scopes) setUniverseDomain(@Nullable String universeDomain) Methods inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
getQuotaProjectId, getUniverseDomain, setAccessTokenMethods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
-
Method Details
-
setHttpTransportFactory
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setHttpTransportFactory(@Nullable HttpTransportFactory transportFactory) -
setScopes
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setScopes(@Nullable Collection<String> scopes) -
setDefaultScopes
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setDefaultScopes(@Nullable Collection<String> defaultScopes) -
setUniverseDomain
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setUniverseDomain(@Nullable String universeDomain) - Overrides:
setUniverseDomainin classGoogleCredentials.Builder
-
setQuotaProjectId
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setQuotaProjectId(@Nullable String quotaProjectId) - Overrides:
setQuotaProjectIdin classGoogleCredentials.Builder
-
setGoogleAuthTransport
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setGoogleAuthTransport(@Nullable ComputeEngineCredentials.GoogleAuthTransport transport) Set theGoogleAuthTransporttype.- Parameters:
transport- the transport type over which to authenticate to Google APIs
-
setBindingEnforcement
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setBindingEnforcement(@Nullable ComputeEngineCredentials.BindingEnforcement bindingEnforcement) Set theBindingEnforcementtype.- Parameters:
bindingEnforcement- the token binding enforcement policy.
-
getHttpTransportFactory
-
getScopes
-
getDefaultScopes
-
getGoogleAuthTransport
Get theGoogleAuthTransporttype.- Returns:
- the transport type over which to authenticate to Google APIs
-
getBindingEnforcement
Get theBindingEnforcementtype.- Returns:
- the token binding enforcement policy.
-
build
- Overrides:
buildin classGoogleCredentials.Builder
-