Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: remoting/protocol/simple_client_authenticator.h

Issue 8647001: Add implementation for current IT2Me auth. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/simple_client_authenticator.h
diff --git a/remoting/protocol/simple_client_authenticator.h b/remoting/protocol/simple_client_authenticator.h
new file mode 100644
index 0000000000000000000000000000000000000000..71361dc1b2626f99d822313264fc3ba1803aeb42
--- /dev/null
+++ b/remoting/protocol/simple_client_authenticator.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_
+#define REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "remoting/protocol/authenticator.h"
+
+namespace remoting {
+namespace protocol {
+
+class SimpleClientAuthenticator : public Authenticator {
Wez 2011/11/22 22:58:05 More descriptive name?
Wez 2011/11/22 22:58:05 Simple is not a very descriptive name. :(
Sergey Ulanov 2011/11/23 02:02:25 Done.
Sergey Ulanov 2011/11/23 02:02:25 Done.
+ public:
+ explicit SimpleClientAuthenticator(const std::string& local_jid,
+ const std::string& shared_secret);
+ virtual ~SimpleClientAuthenticator();
+
+ // Authenticator implementation.
Wez 2011/11/22 22:58:05 nit: implementation -> interface?
Sergey Ulanov 2011/11/23 02:02:25 Done.
+ virtual State state() const OVERRIDE;
+ virtual void ProcessMessage(const buzz::XmlElement* message) OVERRIDE;
+ virtual buzz::XmlElement* GetNextMessage() OVERRIDE;
+ virtual ChannelAuthenticator* CreateChannelAuthenticator() const OVERRIDE;
+
+ private:
+ std::string local_jid_;
+ std::string shared_secret_;
+ std::string remote_cert_;
+ State state_;
+
+ DISALLOW_COPY_AND_ASSIGN(SimpleClientAuthenticator);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_

Powered by Google App Engine
This is Rietveld 408576698