![JAR search and dependency download from the Maven repository](/logo.png)
com.nequi.subscriptions.provider.BasicAWSCredentialsProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nequi-subscriptions-sdk Show documentation
Show all versions of nequi-subscriptions-sdk Show documentation
SDK to use Nequi Subscriptions Api from Java.
The newest version!
package com.nequi.subscriptions.provider;
import com.amazonaws.AmazonClientException;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
public class BasicAWSCredentialsProvider implements AWSCredentialsProvider{
private String accessKey;
private String secretKey;
public BasicAWSCredentialsProvider(String accessKey, String secretKey) {
this.accessKey = accessKey;
this.secretKey = secretKey;
}
@Override
public AWSCredentials getCredentials() {
if (accessKey != null && secretKey != null) {
return new BasicAWSCredentials(accessKey, secretKey);
}
throw new AmazonClientException(
"Access key or secret key is null");
}
@Override
public void refresh() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy