OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 5 #ifndef REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
6 #define REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 6 #define REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 It2MeHostAuthenticatorFactory(const std::string& local_cert, | 26 It2MeHostAuthenticatorFactory(const std::string& local_cert, |
27 scoped_refptr<RsaKeyPair> key_pair, | 27 scoped_refptr<RsaKeyPair> key_pair, |
28 const std::string& access_code, | 28 const std::string& access_code, |
29 const std::string& required_client_domain); | 29 const std::string& required_client_domain); |
30 ~It2MeHostAuthenticatorFactory() override; | 30 ~It2MeHostAuthenticatorFactory() override; |
31 | 31 |
32 // AuthenticatorFactory interface. | 32 // AuthenticatorFactory interface. |
33 scoped_ptr<Authenticator> CreateAuthenticator( | 33 scoped_ptr<Authenticator> CreateAuthenticator( |
34 const std::string& local_jid, | 34 const std::string& local_jid, |
35 const std::string& remote_jid, | 35 const std::string& remote_jid) override; |
36 const buzz::XmlElement* first_message) override; | |
37 | 36 |
38 private: | 37 private: |
39 std::string local_cert_; | 38 std::string local_cert_; |
40 scoped_refptr<RsaKeyPair> key_pair_; | 39 scoped_refptr<RsaKeyPair> key_pair_; |
41 std::string access_code_; | 40 std::string access_code_; |
42 std::string required_client_domain_; | 41 std::string required_client_domain_; |
43 | 42 |
44 DISALLOW_COPY_AND_ASSIGN(It2MeHostAuthenticatorFactory); | 43 DISALLOW_COPY_AND_ASSIGN(It2MeHostAuthenticatorFactory); |
45 }; | 44 }; |
46 | 45 |
47 } // namespace protocol | 46 } // namespace protocol |
48 } // namespace remoting | 47 } // namespace remoting |
49 | 48 |
50 #endif // REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 49 #endif // REMOTING_PROTOCOL_IT2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
OLD | NEW |