File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
S3StorageWagon/src/main/java/com/gkatzioura/maven/cloud/s3 Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1616
1717package com .gkatzioura .maven .cloud .s3 ;
1818
19+ import java .util .logging .Logger ;
20+
1921import org .apache .maven .wagon .authentication .AuthenticationInfo ;
2022
2123import com .amazonaws .auth .AWSCredentialsProvider ;
2527
2628public 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 }
You can’t perform that action at this time.
0 commit comments