Class GdchCredentials (1.30.1)

publicclass GdchCredentialsextendsGoogleCredentials

Inheritance

Object > Credentials > OAuth2Credentials > GoogleCredentials > GdchCredentials

Inherited Members

Static Methods

newBuilder()

publicstaticGdchCredentials.BuildernewBuilder()
Returns
Type Description
GdchCredentials.Builder

Methods

createWithGdchAudience(URI apiAudience)

publicGdchCredentialscreateWithGdchAudience(URIapiAudience)

Create a copy of GDCH credentials with the specified audience.

Parameter
Name Description
apiAudience URI

The intended audience for GDCH credentials.

Returns
Type Description
GdchCredentials
Exceptions
Type Description
IOException

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApiAudience()

publicfinalURIgetApiAudience()
Returns
Type Description
URI

getCaCertPath()

publicfinalStringgetCaCertPath()
Returns
Type Description
String

getPrivateKey()

publicfinalPrivateKeygetPrivateKey()
Returns
Type Description
PrivateKey

getPrivateKeyId()

publicfinalStringgetPrivateKeyId()
Returns
Type Description
String

getProjectId()

publicfinalStringgetProjectId()
Returns
Type Description
String

getServiceIdentityName()

publicfinalStringgetServiceIdentityName()
Returns
Type Description
String

getTokenServerUri()

publicfinalURIgetTokenServerUri()
Returns
Type Description
URI

getTransportFactory()

publicfinalHttpTransportFactorygetTransportFactory()
Returns
Type Description
HttpTransportFactory

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

refreshAccessToken()

publicAccessTokenrefreshAccessToken()

Refresh the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).

For GDCH credentials, this class creates a self-signed JWT, and sends to the GDCH authentication endpoint (tokenServerUri) to exchange an access token for the intended api audience (apiAudience).

Returns
Type Description
AccessToken
Overrides
Exceptions
Type Description
IOException

toBuilder()

publicGdchCredentials.BuildertoBuilder()
Returns
Type Description
GdchCredentials.Builder
Overrides

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

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.