@Test public void testGetAWSCredentials_getValidCredentials() { String expectedAccesskey = "accessKey"; String expectedSecretKey = "secretKey"; AmazonClientCredentials clientInitializer = new AmazonClientCredentials( "accessKey", "secretKey", "", "US East (N. Virginia)" ); AWSCredentials awsCredentials = clientInitializer.getAWSCredentials(); Assert.assertEquals( expectedAccesskey, awsCredentials.getAWSAccessKeyId() ); Assert.assertEquals( expectedSecretKey, awsCredentials.getAWSSecretKey() ); }
public AWSCredentials getAWSCredentials() { return credentials; }
AmazonClientCredentials { public AWSCredentials getAWSCredentials() { return credentials; } }
AmazonClientCredentials { public AWSCredentials getAWSCredentials() { return credentials; } AmazonClientCredentials( String accessKey, String secretKey, String sessionToken, String region ); }
AmazonClientCredentials { public AWSCredentials getAWSCredentials() { return credentials; } AmazonClientCredentials( String accessKey, String secretKey, String sessionToken, String region ); AWSCredentials getAWSCredentials(); String getRegion(); }
AmazonClientCredentials { public AWSCredentials getAWSCredentials() { return credentials; } AmazonClientCredentials( String accessKey, String secretKey, String sessionToken, String region ); AWSCredentials getAWSCredentials(); String getRegion();  }