}
}
-int InternalEncryption::isPasswordCreated()
+int InternalEncryption::recovery()
{
try {
- return context->methodCall<int>("InternalEncryption::isPasswordCreated");
+ return context->methodCall<int>("InternalEncryption::recovery");
} catch (runtime::Exception& e) {
return -1;
}
}
-int InternalEncryption::createPassword(const std::string& password)
+int InternalEncryption::isPasswordInitialized()
{
try {
- return context->methodCall<int>("InternalEncryption::createPassword",
+ 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::deletePassword(const std::string& password)
+int InternalEncryption::cleanPassword(const std::string& password)
{
try {
- return context->methodCall<int>("InternalEncryption::deletePassword",
+ return context->methodCall<int>("InternalEncryption::cleanPassword",
password);
} catch (runtime::Exception& e) {
return -1;