Class GdchCredentials (1.29.1-SNAPSHOT)

public class GdchCredentials extends GoogleCredentials

Inheritance

Object > Credentials > OAuth2Credentials > GoogleCredentials > GdchCredentials

Static Methods

newBuilder()

public static GdchCredentials.Builder newBuilder()
Returns
Type Description
GdchCredentials.Builder

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.

Returns
Type Description
GdchCredentials
Exceptions
Type Description
IOException

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApiAudience()

public final URI getApiAudience()
Returns
Type Description
URI

getCaCertPath()

public final String getCaCertPath()
Returns
Type Description
String

getPrivateKey()

public final PrivateKey getPrivateKey()
Returns
Type Description
PrivateKey

getPrivateKeyId()

public final String getPrivateKeyId()
Returns
Type Description
String

getProjectId()

public final String getProjectId()
Returns
Type Description
String

getServiceIdentityName()

public final String getServiceIdentityName()
Returns
Type Description
String

getTokenServerUri()

public final URI getTokenServerUri()
Returns
Type Description
URI

getTransportFactory()

public final HttpTransportFactory getTransportFactory()
Returns
Type Description
HttpTransportFactory

hashCode()

public int 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).

Returns
Type Description
AccessToken
Overrides
Exceptions
Type Description
IOException

toBuilder()

public GdchCredentials.Builder toBuilder()
Returns
Type Description
GdchCredentials.Builder
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides