com.ionoscloud.s3.credentials.StaticProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ionos-cloud-sdk-s3 Show documentation
Show all versions of ionos-cloud-sdk-s3 Show documentation
IONOS Java SDK for Amazon S3 Compatible Cloud Storage
The newest version!
package com.ionoscloud.s3.credentials;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/** Fixed credential provider. */
public class StaticProvider implements Provider {
private final Credentials credentials;
public StaticProvider(
@Nonnull String accessKey, @Nonnull String secretKey, @Nullable String sessionToken) {
this.credentials = new Credentials(accessKey, secretKey, sessionToken, null);
}
@Override
public Credentials fetch() {
return credentials;
}
}