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.Get theGoogleAuthTransporttype.setBindingEnforcement(ComputeEngineCredentials.BindingEnforcement bindingEnforcement) Set theBindingEnforcementtype.setDefaultScopes(Collection<String> defaultScopes) Set theGoogleAuthTransporttype.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, 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(HttpTransportFactory transportFactory) -
setScopes
-
setDefaultScopes
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setDefaultScopes(Collection<String> defaultScopes) -
setUniverseDomain
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setUniverseDomain(String universeDomain) - Overrides:
setUniverseDomainin classGoogleCredentials.Builder
-
setQuotaProjectId
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setQuotaProjectId(String quotaProjectId) - Overrides:
setQuotaProjectIdin classGoogleCredentials.Builder
-
setGoogleAuthTransport
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setGoogleAuthTransport(ComputeEngineCredentials.GoogleAuthTransport transport) Set theGoogleAuthTransporttype.- Parameters:
transport- the transport type over which to authenticate to Google APIs
-
setBindingEnforcement
@CanIgnoreReturnValue public ComputeEngineCredentials.Builder setBindingEnforcement(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
-