Fix base64 dependency 49/88049/2
authorBrian Freeman <bf1936@att.com>
Sun, 19 May 2019 21:54:44 +0000 (21:54 +0000)
committerBrian Freeman <bf1936@att.com>
Sun, 19 May 2019 23:40:33 +0000 (23:40 +0000)
Issue-ID: APPC-1604
Change-Id: I7063bbfdcf1ca293d9775b7c21c3bc094ad02c3c
Signed-off-by: Brian Freeman <bf1936@att.com>
appc-event-listener/appc-event-listener-bundle/pom.xml
appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/LCM/operation/ProviderOperations.java

index d05a2a9..0684c24 100644 (file)
                        <groupId>equinoxSDK381</groupId>
                        <artifactId>org.eclipse.osgi</artifactId>
                </dependency>
-
+                <dependency>
+                        <groupId>commons-codec</groupId>
+                        <artifactId>commons-codec</artifactId>
+                </dependency>
                <dependency>
                        <groupId>com.fasterxml.jackson.core</groupId>
                        <artifactId>jackson-databind</artifactId>
                                                        *;resolution:=optional
                                                </Import-Package>
                                                <Embed-Dependency>
-                                                       httpclient,httpcore,jasypt,commons-lang,commons-lang3,appc-common-bundle,
+                                                        httpclient,httpcore,jasypt,commons-lang,commons-lang3,commons-codec,appc-common-bundle,
                                                        logback-core,logback-classic,eelf-core,commons-logging;scope=compile|runtime;inline=false
                                                </Embed-Dependency>
                                                <Embed-Transitive>true</Embed-Transitive>
index 42206ec..baaa5b5 100644 (file)
@@ -188,7 +188,7 @@ public class ProviderOperations {
     public String setAuthentication(String user, String password) {
         if (user != null && password != null) {
             String authStr = user + ":" + password;
-            basicAuth = new String(Base64.encodeBase64(authStr.getBytes()));
+            basicAuth = new String(org.apache.commons.codec.binary.Base64.encodeBase64(authStr.getBytes()));
         } else {
             basicAuth = null;
         }
@@ -278,4 +278,4 @@ public class ProviderOperations {
         //FIXME is it working as intended?
         return code != null && ((code == 100) || (code == 400));
     }
-}
\ No newline at end of file
+}