Class GdchCredentials (1.40.0)
public class GdchCredentials extends GoogleCredentials
Static Methods
newBuilder()
public static GdchCredentials.Builder newBuilder()
Methods
createWithGdchAudience(URI apiAudience)
public GdchCredentials createWithGdchAudience(URI apiAudience)
Create a copy of GDCH credentials with the specified audience.
Parameter |
Name |
Description |
apiAudience |
URI
The intended audience for GDCH credentials.
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getApiAudience()
public final URI getApiAudience()
Returns |
Type |
Description |
URI |
|
getCaCertPath()
public final String getCaCertPath()
Returns |
Type |
Description |
String |
|
getPrivateKey()
public final PrivateKey getPrivateKey()
getPrivateKeyId()
public final String getPrivateKeyId()
Returns |
Type |
Description |
String |
|
getProjectId()
public final String getProjectId()
The projectId value for a Credential type. Since not all GoogleCredentials subclass have a
projectId associated, the projectId may be null. A subset of GoogleCredentials subclasses will
override to return their projectId.
Returns |
Type |
Description |
String |
the projectId set in the GDCH SA Key file or the user set projectId
|
Overrides
getServiceIdentityName()
public final String getServiceIdentityName()
Returns |
Type |
Description |
String |
|
getTokenServerUri()
public final URI getTokenServerUri()
Returns |
Type |
Description |
URI |
|
getTransportFactory()
public final HttpTransportFactory getTransportFactory()
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
refreshAccessToken()
public AccessToken refreshAccessToken()
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).
Overrides
toBuilder()
public GdchCredentials.Builder toBuilder()
Overrides
toString()
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-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-15 UTC."],[],[]]