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 for AwsCredentials to exchange for GCP access tokens.
    • 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