use of software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain in project cas by apereo.
the class ChainingAWSCredentialsProviderTests method verifyInstance.
@Test
public void verifyInstance() throws Exception {
val path = File.createTempFile("props", ".txt").getCanonicalPath();
val p = (AwsCredentialsProviderChain) ChainingAWSCredentialsProvider.getInstance("accesskey", "secretKey", "profilePath", path);
val credentials = p.resolveCredentials();
assertNotNull(credentials);
assertTrue(credentials instanceof AwsBasicCredentials);
assertNotNull(ChainingAWSCredentialsProvider.getInstance());
}
Aggregations