Package com.google.auth.oauth2
Class CloudShellCredentials.Builder
- java.lang.Object
-
- com.google.auth.oauth2.OAuth2Credentials.Builder
-
- com.google.auth.oauth2.GoogleCredentials.Builder
-
- com.google.auth.oauth2.CloudShellCredentials.Builder
-
- Enclosing class:
- CloudShellCredentials
public static class CloudShellCredentials.Builder extends GoogleCredentials.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private int
authPort
-
Fields inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
quotaProjectId, universeDomain
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(CloudShellCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudShellCredentials
build()
int
getAuthPort()
CloudShellCredentials.Builder
setAuthPort(int authPort)
CloudShellCredentials.Builder
setQuotaProjectId(java.lang.String quotaProjectId)
-
Methods inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
getQuotaProjectId, getUniverseDomain, setAccessToken, setUniverseDomain
-
Methods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(CloudShellCredentials credentials)
-
-
Method Detail
-
setAuthPort
@CanIgnoreReturnValue public CloudShellCredentials.Builder setAuthPort(int authPort)
-
setQuotaProjectId
@CanIgnoreReturnValue public CloudShellCredentials.Builder setQuotaProjectId(java.lang.String quotaProjectId)
- Overrides:
setQuotaProjectId
in classGoogleCredentials.Builder
-
getAuthPort
public int getAuthPort()
-
build
public CloudShellCredentials build()
- Overrides:
build
in classGoogleCredentials.Builder
-
-