| 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 25 matching lines...) Expand all Loading... |
| 36 scoped_refptr<PairingRegistry> pairing_registry); | 36 scoped_refptr<PairingRegistry> pairing_registry); |
| 37 | 37 |
| 38 // Create a factory that dispenses third party authenticators. | 38 // Create a factory that dispenses third party authenticators. |
| 39 static scoped_ptr<AuthenticatorFactory> CreateWithThirdPartyAuth( | 39 static scoped_ptr<AuthenticatorFactory> CreateWithThirdPartyAuth( |
| 40 bool use_service_account, | 40 bool use_service_account, |
| 41 const std::string& host_owner, | 41 const std::string& host_owner, |
| 42 const std::string& local_cert, | 42 const std::string& local_cert, |
| 43 scoped_refptr<RsaKeyPair> key_pair, | 43 scoped_refptr<RsaKeyPair> key_pair, |
| 44 scoped_ptr<TokenValidatorFactory> token_validator_factory); | 44 scoped_ptr<TokenValidatorFactory> token_validator_factory); |
| 45 | 45 |
| 46 // Create a factory that dispenses rejecting authenticators (used when the | |
| 47 // host config/policy is inconsistent) | |
| 48 static scoped_ptr<AuthenticatorFactory> CreateRejecting(); | |
| 49 | |
| 50 Me2MeHostAuthenticatorFactory(); | 46 Me2MeHostAuthenticatorFactory(); |
| 51 ~Me2MeHostAuthenticatorFactory() override; | 47 ~Me2MeHostAuthenticatorFactory() override; |
| 52 | 48 |
| 53 // AuthenticatorFactory interface. | 49 // AuthenticatorFactory interface. |
| 54 scoped_ptr<Authenticator> CreateAuthenticator( | 50 scoped_ptr<Authenticator> CreateAuthenticator( |
| 55 const std::string& local_jid, | 51 const std::string& local_jid, |
| 56 const std::string& remote_jid, | 52 const std::string& remote_jid, |
| 57 const buzz::XmlElement* first_message) override; | 53 const buzz::XmlElement* first_message) override; |
| 58 | 54 |
| 59 private: | 55 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 72 // Used only for pairing host authenticators. | 68 // Used only for pairing host authenticators. |
| 73 scoped_refptr<PairingRegistry> pairing_registry_; | 69 scoped_refptr<PairingRegistry> pairing_registry_; |
| 74 | 70 |
| 75 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); | 71 DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); |
| 76 }; | 72 }; |
| 77 | 73 |
| 78 } // namespace protocol | 74 } // namespace protocol |
| 79 } // namespace remoting | 75 } // namespace remoting |
| 80 | 76 |
| 81 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ | 77 #endif // REMOTING_PROTOCOL_ME2ME_HOST_AUTHENTICATOR_FACTORY_H_ |
| OLD | NEW |