Package com.google.auth.oauth2
Class GoogleCredentials.Builder
- java.lang.Object
-
- com.google.auth.oauth2.OAuth2Credentials.Builder
-
- com.google.auth.oauth2.GoogleCredentials.Builder
-
- Direct Known Subclasses:
AppEngineCredentials.Builder,CloudShellCredentials.Builder,ComputeEngineCredentials.Builder,ExternalAccountAuthorizedUserCredentials.Builder,ExternalAccountCredentials.Builder,GdchCredentials.Builder,ImpersonatedCredentials.Builder,ServiceAccountCredentials.Builder,UserCredentials.Builder
- Enclosing class:
- GoogleCredentials
public static class GoogleCredentials.Builder extends OAuth2Credentials.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected StringquotaProjectId
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()protectedBuilder(GoogleCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleCredentialsbuild()StringgetQuotaProjectId()GoogleCredentials.BuildersetAccessToken(AccessToken token)GoogleCredentials.BuildersetQuotaProjectId(String quotaProjectId)-
Methods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(GoogleCredentials credentials)
-
-
Method Detail
-
build
public GoogleCredentials build()
- Overrides:
buildin classOAuth2Credentials.Builder
-
setQuotaProjectId
public GoogleCredentials.Builder setQuotaProjectId(String quotaProjectId)
-
getQuotaProjectId
public String getQuotaProjectId()
-
setAccessToken
public GoogleCredentials.Builder setAccessToken(AccessToken token)
- Overrides:
setAccessTokenin classOAuth2Credentials.Builder
-
-