mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-21 08:58:16 +00:00
LocalAuthentication class - used to authenticate OS' logged user (using Touch Id) Keychain class - able to store/read/remove item from the Keychain KeychainManager class - manages the flow of storing/reading/removing an item from the Keychain using own sync/async methods This change is required as part of the feature issue-2675
34 lines
623 B
C++
34 lines
623 B
C++
#ifndef LOCAL_AUTHENTICATION_H
|
|
#define LOCAL_AUTHENTICATION_H
|
|
|
|
#include <QObject>
|
|
|
|
namespace Status
|
|
{
|
|
class LocalAuthentication : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
enum Error {
|
|
Domain=0,
|
|
AppCanceled,
|
|
SystemCanceled,
|
|
UserCanceled,
|
|
TouchIdNotAvailable,
|
|
TouchIdNotConfigured,
|
|
WrongCredentials,
|
|
OtherError
|
|
};
|
|
|
|
void runAuthentication(const QString& authenticationReason);
|
|
|
|
signals:
|
|
void success();
|
|
void error(int error, const QString& errorString);
|
|
};
|
|
}
|
|
|
|
#endif
|