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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 scoped_refptr<RsaKeyPair> key_pair, | 44 scoped_refptr<RsaKeyPair> key_pair, |
45 const std::string& required_client_domain, | 45 const std::string& required_client_domain, |
46 scoped_ptr<TokenValidatorFactory> token_validator_factory); | 46 scoped_ptr<TokenValidatorFactory> token_validator_factory); |
47 | 47 |
48 Me2MeHostAuthenticatorFactory(); | 48 Me2MeHostAuthenticatorFactory(); |
49 ~Me2MeHostAuthenticatorFactory() override; | 49 ~Me2MeHostAuthenticatorFactory() override; |
50 | 50 |
51 // AuthenticatorFactory interface. | 51 // AuthenticatorFactory interface. |
52 scoped_ptr<Authenticator> CreateAuthenticator( | 52 scoped_ptr<Authenticator> CreateAuthenticator( |
53 const std::string& local_jid, | 53 const std::string& local_jid, |
54 const std::string& remote_jid, | 54 const std::string& remote_jid) override; |
55 const buzz::XmlElement* first_message) override; | |
56 | 55 |
57 private: | 56 private: |
58 // Used for all host authenticators. | 57 // Used for all host authenticators. |
59 bool use_service_account_; | 58 bool use_service_account_; |
60 std::string host_owner_; | 59 std::string host_owner_; |
61 std::string local_cert_; | 60 std::string local_cert_; |
62 scoped_refptr<RsaKeyPair> key_pair_; | 61 scoped_refptr<RsaKeyPair> key_pair_; |
63 std::string required_client_domain_; | 62 std::string required_client_domain_; |
64 | 63 |
65 // Used only for PIN-based host authenticators. | 64 // Used only for PIN-based host authenticators. |
66 std::string pin_hash_; | 65 std::string pin_hash_; |
67 | 66 |
68 // Used only for third party host authenticators. | 67 // Used only for third party host authenticators. |
69 scoped_ptr<TokenValidatorFactory> token_validator_factory_; | 68 scoped_ptr<TokenValidatorFactory> token_validator_factory_; |
70 | 69 |
71 // Used only for pairing host authenticators. | 70 // Used only for pairing host authenticators. |
72 scoped_refptr<PairingRegistry> pairing_registry_; | 71 scoped_refptr<PairingRegistry> pairing_registry_; |
73 | 72 |
74 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); | 73 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); |
75 }; | 74 }; |
76 | 75 |
77 } // namespace protocol | 76 } // namespace protocol |
78 } // namespace remoting | 77 } // namespace remoting |
79 | 78 |
80 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 79 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
OLD | NEW |