Fix sonar about always-trust-manager 82/109682/1
authorJim Hahn <jrh3@att.com>
Tue, 30 Jun 2020 13:14:51 +0000 (09:14 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 30 Jun 2020 13:21:35 +0000 (09:21 -0400)
commitd3e074c0010cce39ed4ca0071f5a78aadc8d6496
tree0cfa86f2cab0961f9f805f028492fa94f795b2a0
parentf71f3fcb8c1e3138f92a3c773f19bf3280572def
Fix sonar about always-trust-manager

This trust manager is not secure and should be avoided.  However,
it is only used when the configuration explicitly says to allow
self-signed certificates.  Modified the code to use an apache trust
manager, thus avoid the sonar complaint.

Issue-ID: POLICY-2650
Change-Id: Iaf4c72689916ed5ed5e6864666f3f54b2c5e0f12
Signed-off-by: Jim Hahn <jrh3@att.com>
utils/pom.xml
utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java