Skip to content

Commit e43e1f5

Browse files
committed
Added static credentials provider log message
1 parent 6cd44e6 commit e43e1f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

S3StorageWagon/src/main/java/com/gkatzioura/maven/cloud/s3/CredentialsFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.gkatzioura.maven.cloud.s3;
1818

19+
import java.util.logging.Logger;
20+
1921
import org.apache.maven.wagon.authentication.AuthenticationInfo;
2022

2123
import com.amazonaws.auth.AWSCredentialsProvider;
@@ -25,6 +27,8 @@
2527

2628
public class CredentialsFactory {
2729

30+
private static final Logger LOGGER = Logger.getLogger(CredentialsFactory.class.getName());
31+
2832
/**
2933
* Creates an {@link AWSCredentialsProvider} from the passed {@link AuthenticationInfo}. This should contain the
3034
* username and password used to authenticate when connecting to AWS .<p>
@@ -41,6 +45,7 @@ public AWSCredentialsProvider create(AuthenticationInfo authenticationInfo) {
4145
if(authenticationInfo==null) {
4246
return new DefaultAWSCredentialsProviderChain();
4347
} else {
48+
LOGGER.info("Using static credentials provider");
4449
return new AWSStaticCredentialsProvider(new BasicAWSCredentials(authenticationInfo.getUserName(),authenticationInfo.getPassword()));
4550
}
4651
}

0 commit comments

Comments
 (0)