Class GdchCredentials.Builder (1.28.0)

publicstaticclass GdchCredentials.BuilderextendsGoogleCredentials.Builder

Inheritance

java.lang.Object > OAuth2Credentials.Builder > GoogleCredentials.Builder > GdchCredentials.Builder

Constructors

Builder()

protectedBuilder()

Builder(GdchCredentials credentials)

protectedBuilder(GdchCredentialscredentials)
Parameter
Name Description
credentials GdchCredentials

Methods

build()

publicGdchCredentialsbuild()
Returns
Type Description
GdchCredentials
Overrides

getCaCertPath()

publicStringgetCaCertPath()
Returns
Type Description
String

getHttpTransportFactory()

publicHttpTransportFactorygetHttpTransportFactory()
Returns
Type Description
HttpTransportFactory

getLifetime()

publicintgetLifetime()
Returns
Type Description
int

getPrivateKey()

publicPrivateKeygetPrivateKey()
Returns
Type Description
PrivateKey

getPrivateKeyId()

publicStringgetPrivateKeyId()
Returns
Type Description
String

getProjectId()

publicStringgetProjectId()
Returns
Type Description
String

getServiceIdentityName()

publicStringgetServiceIdentityName()
Returns
Type Description
String

getTokenServerUri()

publicURIgetTokenServerUri()
Returns
Type Description
URI

setCaCertPath(String caCertPath)

publicGdchCredentials.BuildersetCaCertPath(StringcaCertPath)
Parameter
Name Description
caCertPath String
Returns
Type Description
GdchCredentials.Builder

setGdchAudience(URI apiAudience)

publicGdchCredentials.BuildersetGdchAudience(URIapiAudience)
Parameter
Name Description
apiAudience URI
Returns
Type Description
GdchCredentials.Builder

setHttpTransportFactory(HttpTransportFactory transportFactory)

publicGdchCredentials.BuildersetHttpTransportFactory(HttpTransportFactorytransportFactory)
Parameter
Name Description
transportFactory HttpTransportFactory
Returns
Type Description
GdchCredentials.Builder

setPrivateKey(PrivateKey privateKey)

publicGdchCredentials.BuildersetPrivateKey(PrivateKeyprivateKey)
Parameter
Name Description
privateKey PrivateKey
Returns
Type Description
GdchCredentials.Builder

setPrivateKeyId(String privateKeyId)

publicGdchCredentials.BuildersetPrivateKeyId(StringprivateKeyId)
Parameter
Name Description
privateKeyId String
Returns
Type Description
GdchCredentials.Builder

setProjectId(String projectId)

publicGdchCredentials.BuildersetProjectId(StringprojectId)
Parameter
Name Description
projectId String
Returns
Type Description
GdchCredentials.Builder

setServiceIdentityName(String name)

publicGdchCredentials.BuildersetServiceIdentityName(Stringname)
Parameter
Name Description
name String
Returns
Type Description
GdchCredentials.Builder

setTokenServerUri(URI tokenServerUri)

publicGdchCredentials.BuildersetTokenServerUri(URItokenServerUri)
Parameter
Name Description
tokenServerUri URI
Returns
Type Description
GdchCredentials.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.