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 String
quotaProjectId
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(GoogleCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleCredentials
build()
String
getQuotaProjectId()
GoogleCredentials.Builder
setAccessToken(AccessToken token)
GoogleCredentials.Builder
setQuotaProjectId(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:
build
in classOAuth2Credentials.Builder
-
setQuotaProjectId
public GoogleCredentials.Builder setQuotaProjectId(String quotaProjectId)
-
getQuotaProjectId
public String getQuotaProjectId()
-
setAccessToken
public GoogleCredentials.Builder setAccessToken(AccessToken token)
- Overrides:
setAccessToken
in classOAuth2Credentials.Builder
-
-