diff options
author | Michael DÜrre <michael.duerre@highstreet-technologies.com> | 2021-02-09 08:14:07 +0100 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2021-02-09 20:32:06 +0000 |
commit | 934dbb765be113e5eea4da73da90e464d6fa0716 (patch) | |
tree | 8be9398bc844321581d624846ef18f4b8581f29a /sdnr/wt/common | |
parent | 09753774d6faf549928052aeb7eccadc2ab88e0a (diff) |
add oauth-provider
new feature for more login security and external logins
Issue-ID: CCSDK-3142
Signed-off-by: Michael DÜrre <michael.duerre@highstreet-technologies.com>
Change-Id: I6a564a0d1dca44b69bfea2e692fec1f4315cab83
Signed-off-by: Michael DÜrre <michael.duerre@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt/common')
2 files changed, 5 insertions, 2 deletions
diff --git a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/http/BaseHTTPClient.java b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/http/BaseHTTPClient.java index 198fb920c..937e2d898 100644 --- a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/http/BaseHTTPClient.java +++ b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/http/BaseHTTPClient.java @@ -71,7 +71,7 @@ public class BaseHTTPClient { private static final int SSLCERT_PCKS = 0; private static final int SSLCERT_PEM = 1; private static final int BUFSIZE = 1024; - private static final Charset CHARSET = StandardCharsets.UTF_8; + public static final Charset CHARSET = StandardCharsets.UTF_8; private static final String SSLCONTEXT = "TLSv1.2"; private static final int DEFAULT_HTTP_TIMEOUT_MS = 30000; // in ms diff --git a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/util/Environment.java b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/util/Environment.java index 050152f50..89e926654 100644 --- a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/util/Environment.java +++ b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/util/Environment.java @@ -28,6 +28,9 @@ import java.util.Map; public class Environment { public static String getVar(String v) { + return getVar(v, null); + } + public static String getVar(String v, String defaultValue) { if (v.equals("$HOSTNAME")) { String s = null; try { @@ -43,6 +46,6 @@ public class Environment { if (envName != null && envName.equals(v)) return env.get(envName); } - return null; + return defaultValue; } } |