diff options
Diffstat (limited to 'remoting/host/user_authenticator.h')
-rw-r--r-- | remoting/host/user_authenticator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/host/user_authenticator.h b/remoting/host/user_authenticator.h index 10f6cfd..b6f6a7f 100644 --- a/remoting/host/user_authenticator.h +++ b/remoting/host/user_authenticator.h @@ -13,6 +13,7 @@ namespace remoting { // Implementation is platform-specific. // Implementations may assume each instance of this class handles only a // single Authenticate request. + // TODO(lambroslambrou): Decide whether this needs an asychronous interface // (for example AuthenticateStart()..AuthenticateEndCallback()), or whether the // multi-threading policy could be handled by the caller. @@ -20,6 +21,9 @@ class UserAuthenticator { public: virtual ~UserAuthenticator() {} + // Create platform-specific authenticator. + static UserAuthenticator* Create(); + // Authenticate a user, returning true if the username/password are valid. virtual bool Authenticate(const std::string& username, const std::string& password) = 0; |