summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpClientFactory.java6
-rw-r--r--sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpRequestFactory.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpClientFactory.java b/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpClientFactory.java
index db1164d..47048b5 100644
--- a/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpClientFactory.java
+++ b/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpClientFactory.java
@@ -44,7 +44,7 @@ import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
-class HttpClientFactory {
+public class HttpClientFactory {
private static final int AUTHORIZATION_SCOPE_PLAIN_PORT = 80;
private static final int AUTHORIZATION_SCOPE_PORT = 443;
private static final KeyStore DEFAULT_INIT_KEY_STORE_VALUE = null;
@@ -53,11 +53,11 @@ class HttpClientFactory {
static final String HTTPS = "https://";
private final IConfiguration configuration;
- HttpClientFactory(IConfiguration configuration) {
+ public HttpClientFactory(IConfiguration configuration) {
this.configuration = configuration;
}
- Pair<String, CloseableHttpClient> createInstance() {
+ public Pair<String, CloseableHttpClient> createInstance() {
boolean isHttpsRequired = configuration.isUseHttpsWithSDC();
Pair<String, CloseableHttpClient> httpClientPair;
if (isHttpsRequired) {
diff --git a/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpRequestFactory.java b/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpRequestFactory.java
index 0049d90..9e2f3ee 100644
--- a/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpRequestFactory.java
+++ b/sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpRequestFactory.java
@@ -30,13 +30,13 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
-class HttpRequestFactory {
+public class HttpRequestFactory {
public static final String AUTHORIZATION = "Authorization";
private static final String BASIC_AUTH_FORMAT = "%s:%s";
private final String authHeaderValue;
- HttpRequestFactory(String user, String password) {
+ public HttpRequestFactory(String user, String password) {
this.authHeaderValue = "Basic " + Base64.getEncoder().encodeToString(createAuthHeaderData(user, password));
}