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

org.apache.hadoop.fs.auth.AbstractCOSCredentialProvider Maven / Gradle / Ivy

Go to download

This module contains code to support integration with Tencent Cloud COS. It also declares the dependencies needed to work with COS.

There is a newer version: 8.2.7
Show newest version
package org.apache.hadoop.fs.auth;

import com.qcloud.cos.auth.COSCredentialsProvider;
import org.apache.hadoop.conf.Configuration;

import javax.annotation.Nullable;
import java.net.URI;

/**
 * The base class for COS credential providers which take a URI or
 * configuration in their constructor.
 */
public abstract class AbstractCOSCredentialProvider
        implements COSCredentialsProvider {
    private final URI uri;
    private final Configuration conf;

    public AbstractCOSCredentialProvider(@Nullable URI uri,
                                         Configuration conf) {
        this.uri = uri;
        this.conf = conf;
    }

    public URI getUri() {
        return uri;
    }

    public Configuration getConf() {
        return conf;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy