<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>
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;
}
//FIXME is it working as intended?
return code != null && ((code == 100) || (code == 400));
}
-}
\ No newline at end of file
+}