public class GdchCredentials extends GoogleCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
GdchCredentials.Builder |
OAuth2Credentials.CredentialsChangedListenerquotaProjectId| Modifier and Type | Method and Description |
|---|---|
GdchCredentials |
createWithGdchAudience(URI apiAudience)
Create a copy of GDCH credentials with the specified audience.
|
boolean |
equals(Object obj) |
URI |
getApiAudience() |
String |
getCaCertPath() |
PrivateKey |
getPrivateKey() |
String |
getPrivateKeyId() |
String |
getProjectId() |
String |
getServiceIdentityName() |
URI |
getTokenServerUri() |
HttpTransportFactory |
getTransportFactory() |
int |
hashCode() |
static GdchCredentials.Builder |
newBuilder() |
AccessToken |
refreshAccessToken()
Refresh the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).
|
GdchCredentials.Builder |
toBuilder() |
String |
toString() |
create, createDelegated, createScoped, createScoped, createScoped, createScopedRequired, createWithCustomRetryStrategy, createWithQuotaProject, fromStream, fromStream, getAdditionalHeaders, getApplicationDefault, getApplicationDefault, getQuotaProjectIdaddChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, refreshIfExpired, removeChangeListenerblockingGetToCallback, getRequestMetadatapublic GdchCredentials createWithGdchAudience(URI apiAudience) throws IOException
apiAudience - The intended audience for GDCH credentials.IOExceptionpublic AccessToken refreshAccessToken() throws IOException
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).
refreshAccessToken in class OAuth2CredentialsIOExceptionpublic final String getProjectId()
public final String getPrivateKeyId()
public final PrivateKey getPrivateKey()
public final String getServiceIdentityName()
public final URI getTokenServerUri()
public final URI getApiAudience()
public final HttpTransportFactory getTransportFactory()
public final String getCaCertPath()
public static GdchCredentials.Builder newBuilder()
public GdchCredentials.Builder toBuilder()
toBuilder in class GoogleCredentialspublic int hashCode()
hashCode in class OAuth2Credentialspublic String toString()
toString in class OAuth2Credentialspublic boolean equals(Object obj)
equals in class OAuth2CredentialsCopyright © 2023 Google. All rights reserved.