public class GdchCredentials extends GoogleCredentials
Modifier and Type | Class and Description |
---|---|
static class |
GdchCredentials.Builder |
OAuth2Credentials.CredentialsChangedListener
quotaProjectId
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, getQuotaProjectId
addChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, refreshIfExpired, removeChangeListener
blockingGetToCallback, getRequestMetadata
public GdchCredentials createWithGdchAudience(URI apiAudience) throws IOException
apiAudience
- The intended audience for GDCH credentials.IOException
public 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 OAuth2Credentials
IOException
public 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 GoogleCredentials
public int hashCode()
hashCode
in class OAuth2Credentials
public String toString()
toString
in class OAuth2Credentials
public boolean equals(Object obj)
equals
in class OAuth2Credentials
Copyright © 2023 Google. All rights reserved.