From cf2f6ef5fadb27bab1e65cb25ff9d36acad4a68d Mon Sep 17 00:00:00 2001 From: "dave.adams (da490c)" Date: Fri, 9 Jun 2017 22:34:16 -0400 Subject: Modify authentication mode default Change-Id: I751af549f37200b6e12cf2b6f1319f3d4d5f628a Signed-off-by: dave.adams (da490c) --- src/main/java/org/openecomp/restclient/rest/RestClientBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openecomp/restclient/rest/RestClientBuilder.java b/src/main/java/org/openecomp/restclient/rest/RestClientBuilder.java index 0afd8a6..2dd19ac 100644 --- a/src/main/java/org/openecomp/restclient/rest/RestClientBuilder.java +++ b/src/main/java/org/openecomp/restclient/rest/RestClientBuilder.java @@ -58,7 +58,7 @@ public class RestClientBuilder { public static final String DEFAULT_TRUST_STORE_FILENAME = null; public static final int DEFAULT_CONNECT_TIMEOUT_MS = 60000; public static final int DEFAULT_READ_TIMEOUT_MS = 60000; - public static final RestAuthenticationMode DEFAULT_AUTH_MODE = RestAuthenticationMode.HTTP_NOAUTH; + public static final RestAuthenticationMode DEFAULT_AUTH_MODE = RestAuthenticationMode.SSL_CERT; public static final String DEFAULT_BASIC_AUTH_USERNAME = ""; public static final String DEFAULT_BASIC_AUTH_PASSWORD = ""; @@ -88,7 +88,7 @@ public class RestClientBuilder { truststoreFilename = DEFAULT_TRUST_STORE_FILENAME; connectTimeoutInMs = DEFAULT_CONNECT_TIMEOUT_MS; readTimeoutInMs = DEFAULT_READ_TIMEOUT_MS; - authenticationMode = RestAuthenticationMode.HTTP_NOAUTH; + authenticationMode = DEFAULT_AUTH_MODE; basicAuthUsername = DEFAULT_BASIC_AUTH_USERNAME; basicAuthPassword = DEFAULT_BASIC_AUTH_PASSWORD; } -- cgit 1.2.3-korg