Allow full-path to certificate and remove implicit Optional::toString 96/91796/1
authorIttay Stern <ittay.stern@att.com>
Mon, 22 Jul 2019 08:21:05 +0000 (11:21 +0300)
committerIttay Stern <ittay.stern@att.com>
Mon, 22 Jul 2019 08:36:00 +0000 (11:36 +0300)
commit673b18baae5db233d3da2a2b40f9b5d772c6cee2
tree92e9f6d933d1c7217864c50bed8145621e9cd538
parent7777af2d57f3461b06f8c787cfb6e33c3b01e8a6
Allow full-path to certificate and remove implicit Optional::toString

1) If getAAITruststoreFilename or getAAIKeystoreFilename has a file
   separator -- don't append certFilePath to filename.

2) getKeystorePath() is issuing Optional::orElse, as the code
   `+ getAAIKeystoreFilename()` is implicitly calling
   `getAAIKeystoreFilename().toString()` which yields a default toString
   e.g. "Optional[configValue]".

Issue-ID: VID-229

Change-Id: I9c135cc3dfd72cdc203b59d78162a568a6dbd688
Signed-off-by: Ittay Stern <ittay.stern@att.com>
vid-app-common/src/main/java/org/onap/vid/aai/util/HttpsAuthClient.java
vid-app-common/src/test/java/org/onap/vid/aai/util/HttpsAuthClientTest.java