com.qcloud.cos.auth.HttpCredentialsEndpointProvider Maven / Gradle / Ivy
The newest version!
package com.qcloud.cos.auth;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Map;
public class HttpCredentialsEndpointProvider extends CredentialsEndpointProvider{
private final String url;
private final String path;
private final Map header;
public HttpCredentialsEndpointProvider(String url, String path, Map header) {
this.url = url;
this.path = path;
this.header = header;
}
@Override
public URI getCredentialsEndpoint() throws URISyntaxException {
return new URI(url + path);
}
@Override
public Map getHeaders() {
return header;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy