Class GoogleMetadataServerGrant
java.lang.Object
com.codename1.backend.security.oauth2.client.credentials.GoogleMetadataServerGrant
- All Implemented Interfaces:
AccessTokenGrant
The default service account of the Google Cloud machine this server runs
on -- Compute Engine, Cloud Run, GKE, App Engine -- as an
AccessTokenGrant,
read from the metadata server. The fallback every Google client uses when no
key file is configured.-
Constructor Details
-
GoogleMetadataServerGrant
public GoogleMetadataServerGrant()
-
-
Method Details
-
fetch
Description copied from interface:AccessTokenGrantExchanges the credentials for a new token.- Specified by:
fetchin interfaceAccessTokenGrant
-
serviceAccountEmail
The e-mail address of the machine's service account, which is what a signature made through the IAMsignBlobcall is attributed to.- Throws:
IOException- when the metadata server does not answer
-