Package com.google.auth.oauth2
Class GdchCredentials.Builder
java.lang.Object
com.google.auth.oauth2.OAuth2Credentials.Builder
com.google.auth.oauth2.GoogleCredentials.Builder
com.google.auth.oauth2.GdchCredentials.Builder
- Enclosing class:
- GdchCredentials
-
Field Summary
Fields inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
quotaProjectId, universeDomain -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()@Nullable String@Nullable String@Nullable HttpTransportFactoryint@Nullable PrivateKey@Nullable String@Nullable String@Nullable String@Nullable URIsetCaCertPath(@Nullable String caCertPath) setGdchAudience(String apiAudience) Sets the intended audience for GDCH credentials.setHttpTransportFactory(HttpTransportFactory transportFactory) setPrivateKey(PrivateKey privateKey) setPrivateKeyId(String privateKeyId) setProjectId(String projectId) setQuotaProjectId(@Nullable String quotaProjectId) setServiceIdentityName(String name) setTokenServerUri(URI tokenServerUri) Methods inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
getQuotaProjectId, getUniverseDomain, setAccessToken, setUniverseDomainMethods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
-
Method Details
-
setProjectId
-
setPrivateKeyId
-
setPrivateKey
-
setServiceIdentityName
-
setTokenServerUri
-
setHttpTransportFactory
@CanIgnoreReturnValue public GdchCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory) -
setCaCertPath
-
setGdchAudience
Sets the intended audience for GDCH credentials.- Parameters:
apiAudience- The audience string. Cannot be null or empty.- Returns:
- this builder.
- Throws:
IllegalArgumentException- if the audience is null or empty.
-
getProjectId
-
getPrivateKeyId
-
getPrivateKey
-
getServiceIdentityName
-
getTokenServerUri
-
getGdchAudience
-
getHttpTransportFactory
-
getCaCertPath
-
setQuotaProjectId
@CanIgnoreReturnValue public GdchCredentials.Builder setQuotaProjectId(@Nullable String quotaProjectId) - Overrides:
setQuotaProjectIdin classGoogleCredentials.Builder
-
getLifetime
public int getLifetime() -
build
- Overrides:
buildin classGoogleCredentials.Builder
-