Search in sources :

Example 1 with WebIdentityTokenFileCredentialsProvider

use of software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider in project flink by apache.

the class AWSGeneralUtilTest method testGetCredentialsProviderWebIdentityTokenFileCredentialsProvider.

@Test
public void testGetCredentialsProviderWebIdentityTokenFileCredentialsProvider() {
    Properties properties = TestUtil.properties(AWS_CREDENTIALS_PROVIDER, "WEB_IDENTITY_TOKEN");
    AwsCredentialsProvider credentialsProvider = AWSGeneralUtil.getCredentialsProvider(properties);
    assertTrue(credentialsProvider instanceof WebIdentityTokenFileCredentialsProvider);
}
Also used : WebIdentityTokenFileCredentialsProvider(software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider) AwsCredentialsProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider) Properties(java.util.Properties) Test(org.junit.Test)

Aggregations

Properties (java.util.Properties)1 Test (org.junit.Test)1 AwsCredentialsProvider (software.amazon.awssdk.auth.credentials.AwsCredentialsProvider)1 WebIdentityTokenFileCredentialsProvider (software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider)1