Class GdchCredentials
java.lang.Object
com.google.auth.Credentials
com.google.auth.oauth2.OAuth2Credentials
com.google.auth.oauth2.GoogleCredentials
com.google.auth.oauth2.GdchCredentials
- All Implemented Interfaces:
QuotaProjectIdProvider, Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class OAuth2Credentials
OAuth2Credentials.CredentialsChangedListener -
Field Summary
Fields inherited from class GoogleCredentials
quotaProjectIdFields inherited from class Credentials
GOOGLE_DEFAULT_UNIVERSE -
Method Summary
Modifier and TypeMethodDescriptioncreateWithGdchAudience(URI apiAudience) Create a copy of GDCH credentials with the specified audience.booleanfinal URIfinal Stringfinal PrivateKeyfinal Stringfinal Stringfinal Stringfinal URIfinal HttpTransportFactoryinthashCode()static GdchCredentials.BuilderRefresh the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).toString()Methods inherited from class GoogleCredentials
create, create, createDelegated, createScoped, createScoped, createScoped, createScopedRequired, createWithCustomRetryStrategy, createWithQuotaProject, fromStream, fromStream, getAdditionalHeaders, getApplicationDefault, getApplicationDefault, getQuotaProjectId, getUniverseDomain, isExplicitUniverseDomain, toStringHelperMethods inherited from class OAuth2Credentials
addChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, refreshIfExpired, removeChangeListenerMethods inherited from class Credentials
blockingGetToCallback, getMetricsCredentialType, getRequestMetadata
-
Method Details
-
createWithGdchAudience
Create a copy of GDCH credentials with the specified audience.- Parameters:
apiAudience- The intended audience for GDCH credentials.- Throws:
IOException
-
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:
refreshAccessTokenin classOAuth2Credentials- Returns:
- never
- Throws:
IOException
-
getProjectId
-
getPrivateKeyId
-
getPrivateKey
-
getServiceIdentityName
-
getTokenServerUri
-
getApiAudience
-
getTransportFactory
-
getCaCertPath
-
newBuilder
-
toBuilder
- Overrides:
toBuilderin classGoogleCredentials
-
hashCode
public int hashCode()- Overrides:
hashCodein classGoogleCredentials
-
toString
- Overrides:
toStringin classGoogleCredentials
-
equals
- Overrides:
equalsin classGoogleCredentials
-