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
+}