Package com.google.auth.oauth2
Interface AwsSecurityCredentialsSupplier
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
InternalAwsSecurityCredentialsSupplier
public interface AwsSecurityCredentialsSupplier extends java.io.Serializable
Supplier for retrieving AWS Security credentials forAwsCredentials
to exchange for GCP access tokens.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsSecurityCredentials
getCredentials(ExternalAccountSupplierContext context)
Gets AWS security credentials.java.lang.String
getRegion(ExternalAccountSupplierContext context)
Gets the AWS region to use.
-
-
-
Method Detail
-
getRegion
java.lang.String getRegion(ExternalAccountSupplierContext context) throws java.io.IOException
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:
java.io.IOException
-
getCredentials
AwsSecurityCredentials getCredentials(ExternalAccountSupplierContext context) throws java.io.IOException
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:
java.io.IOException
-
-