-private:
- static ExclusiveHash <std::string> st_stringExclusiveHash;
- static ExclusiveHash <std::string, int> st_string2intExclusiveHash;
+ /**
+ * Base64 encoding
+ *
+ * @param str String to be encoded
+ *
+ * @return Returns encoded representation
+ */
+ static std::string encodeBase64(const U8* buf, unsigned int bufLen);
+ static std::string encodeBase64(const std::string & str)
+ {
+ return encodeBase64((const U8 *)str.c_str(), str.size());
+ }
+
+ /**
+ * Base64 decoding
+ *
+ * @param encodedString Encoded base64 representation
+ *
+ * @return Returns decoded representation
+ */
+ static std::string decodeBase64(const std::string & encodedString);
+
+
+ /*
+ * Reads a file into passed string
+ *
+ * @param pathfile Path file to read
+ * @param content String where file content is dump
+ *
+ * @return success for read operation
+ */
+ static bool getContentFromFile(const std::string &pathfile, std::string &content) throw(anna::RuntimeException);