All Downloads are FREE. Search and download functionalities are using the official Maven repository.

awscala.BasicCredentialsProvider.scala Maven / Gradle / Ivy

The newest version!
package awscala

class BasicCredentialsProvider(accessKey: String, secretKey: String) extends CredentialsProvider {
  private val credentials: Credentials = Credentials(accessKey, secretKey)
  override def getCredentials: Credentials = credentials
  override def refresh: Unit = {}
}

object BasicCredentialsProvider {
  def apply(accessKey: String, secretKey: String): BasicCredentialsProvider =
    new BasicCredentialsProvider(accessKey, secretKey)

  def apply(credentials: Credentials): BasicCredentialsProvider =
    new BasicCredentialsProvider(credentials.getAWSAccessKeyId, credentials.getAWSSecretKey)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy