package org.elasticsearch;
import com.huaweicloud.sdk.iam.v3.model.Credentials;
import java.util.Objects;
* OBS basic credentials
*/
class ObsBasicCredentials extends Credentials {
private final String accessKey;
private final String secretKey;
ObsBasicCredentials(String accessKey, String secretKey) {
this.accessKey = accessKey;
this.secretKey = secretKey;
}
public final String getAccessKeyId() {
return accessKey;
}
public final String getSecretKey() {
return secretKey;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final ObsBasicCredentials that = (ObsBasicCredentials) o;
return accessKey.equals(that.accessKey) && secretKey.equals(that.secretKey);
}
@Override
public int hashCode() {
return Objects.hash(accessKey, secretKey);
}
}