}
}
-int InternalEncryption::verifyPassword(const std::string& password)
+int InternalEncryption::recovery()
{
try {
- return context->methodCall<int>("InternalEncryption::verifyPassword",
+ return context->methodCall<int>("InternalEncryption::recovery");
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
+int InternalEncryption::isPasswordInitialized()
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::isPasswordInitialized");
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
+int InternalEncryption::initPassword(const std::string& password)
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::initPassword",
+ password);
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
+int InternalEncryption::cleanPassword(const std::string& password)
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::cleanPassword",
password);
} catch (runtime::Exception& e) {
return -1;
}
}
+int InternalEncryption::verifyPassword(const std::string& password)
+{
+ try {
+ return context->methodCall<int>("InternalEncryption::verifyPassword",
+ password);
+ } catch (runtime::Exception& e) {
+ return -1;
+ }
+}
+
int InternalEncryption::getState()
{
try {