Class GdchCredentials (1.19.0)

public class GdchCredentials extends GoogleCredentials

Inheritance

Object > Credentials > OAuth2Credentials > GoogleCredentials > GdchCredentials

Static Methods

newBuilder()

public static GdchCredentials.Builder newBuilder()
Returns
TypeDescription
GdchCredentials.Builder

Methods

createWithGdchAudience(URI apiAudience)

public GdchCredentials createWithGdchAudience(URI apiAudience)

Create a copy of GDCH credentials with the specified audience.

Parameter
NameDescription
apiAudienceURI

The intended audience for GDCH credentials.

Returns
TypeDescription
GdchCredentials
Exceptions
TypeDescription
IOException

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApiAudience()

public final URI getApiAudience()
Returns
TypeDescription
URI

getCaCertPath()

public final String getCaCertPath()
Returns
TypeDescription
String

getPrivateKey()

public final PrivateKey getPrivateKey()
Returns
TypeDescription
PrivateKey

getPrivateKeyId()

public final String getPrivateKeyId()
Returns
TypeDescription
String

getProjectId()

public final String getProjectId()
Returns
TypeDescription
String

getServiceIdentityName()

public final String getServiceIdentityName()
Returns
TypeDescription
String

getTokenServerUri()

public final URI getTokenServerUri()
Returns
TypeDescription
URI

getTransportFactory()

public final HttpTransportFactory getTransportFactory()
Returns
TypeDescription
HttpTransportFactory

hashCode()

public int hashCode()
Returns
TypeDescription
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).

Returns
TypeDescription
AccessToken
Overrides
Exceptions
TypeDescription
IOException

toBuilder()

public GdchCredentials.Builder toBuilder()
Returns
TypeDescription
GdchCredentials.Builder
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides