Package com.google.auth.oauth2
Interface AwsSecurityCredentialsSupplier
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
InternalAwsSecurityCredentialsSupplier
Supplier for retrieving AWS Security credentials for
AwsCredentials
to exchange for GCP
access tokens.-
Method Summary
Modifier and TypeMethodDescriptionGets AWS security credentials.getRegion
(ExternalAccountSupplierContext context) Gets the AWS region to use.
-
Method Details
-
getRegion
Gets the AWS region to use.- Parameters:
context
- relevant context from the calling credential.- Returns:
- the AWS region that should be used for the credential.
- Throws:
IOException
-
getCredentials
Gets AWS security credentials.- Parameters:
context
- relevant context from the calling credential.- Returns:
- valid AWS security credentials that can be exchanged for a GCP access token.
- Throws:
IOException
-