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

com.kingsoft.services.auth.BasicKWSCredentials Maven / Gradle / Ivy

package com.kingsoft.services.auth;

public class BasicKWSCredentials implements KWSCredentials {

  private final String accessKey;
  private final String secretKey;

  public BasicKWSCredentials(String accessKey, String secretKey) {
    if (accessKey == null) {
      throw new IllegalArgumentException("Access key cannot be null.");
    }
    if (secretKey == null) {
      throw new IllegalArgumentException("Secret key cannot be null.");
    }

    this.accessKey = accessKey;
    this.secretKey = secretKey;
  }

  public String getAccessKeyId() {
    return accessKey;
  }

  public String getSecretKey() {
    return secretKey;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy