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_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 5 #ifndef REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
6 #define REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 6 #define REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory { | 22 class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory { |
23 public: | 23 public: |
24 // Doesn't take ownership of |local_private_key|. | 24 // Doesn't take ownership of |local_private_key|. |
25 Me2MeHostAuthenticatorFactory(const std::string& local_jid, | 25 Me2MeHostAuthenticatorFactory(const std::string& local_jid, |
26 const std::string& local_cert, | 26 const std::string& local_cert, |
27 const crypto::RSAPrivateKey& local_private_key, | 27 const crypto::RSAPrivateKey& local_private_key, |
28 const std::string& shared_secret); | 28 const std::string& shared_secret); |
29 virtual ~Me2MeHostAuthenticatorFactory(); | 29 virtual ~Me2MeHostAuthenticatorFactory(); |
30 | 30 |
31 // AuthenticatorFactory interface. | 31 // AuthenticatorFactory interface. |
32 virtual Authenticator* CreateAuthenticator( | 32 virtual scoped_ptr<Authenticator> CreateAuthenticator( |
33 const std::string& remote_jid, | 33 const std::string& remote_jid, |
34 const buzz::XmlElement* first_message) OVERRIDE; | 34 const buzz::XmlElement* first_message) OVERRIDE; |
35 | 35 |
36 private: | 36 private: |
37 std::string local_jid_prefix_; | 37 std::string local_jid_prefix_; |
38 std::string local_cert_; | 38 std::string local_cert_; |
39 scoped_ptr<crypto::RSAPrivateKey> local_private_key_; | 39 scoped_ptr<crypto::RSAPrivateKey> local_private_key_; |
40 std::string shared_secret_; | 40 std::string shared_secret_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); | 42 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace protocol | 45 } // namespace protocol |
46 } // namespace remoting | 46 } // namespace remoting |
47 | 47 |
48 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 48 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
OLD | NEW |