Index: remoting/protocol/me2me_host_authenticator_factory.h |
diff --git a/remoting/protocol/me2me_host_authenticator_factory.h b/remoting/protocol/me2me_host_authenticator_factory.h |
index e6375a23eb4799bb7f8746fc0e62b28b05095a2e..dbbb51d873784190105782a2fb447a9ae6b85ef9 100644 |
--- a/remoting/protocol/me2me_host_authenticator_factory.h |
+++ b/remoting/protocol/me2me_host_authenticator_factory.h |
@@ -13,6 +13,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "remoting/protocol/authentication_method.h" |
#include "remoting/protocol/authenticator.h" |
+#include "remoting/protocol/third_party_host_authenticator.h" |
namespace remoting { |
@@ -25,7 +26,11 @@ class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory { |
Me2MeHostAuthenticatorFactory( |
const std::string& local_cert, |
scoped_refptr<RsaKeyPair> key_pair, |
- const SharedSecretHash& shared_secret_hash); |
+ const SharedSecretHash& shared_secret_hash, |
+ const GURL& token_url, |
+ const GURL& token_validation_url, |
+ ThirdPartyHostAuthenticator::TokenValidatorFactory* |
+ token_validator_factory); |
virtual ~Me2MeHostAuthenticatorFactory(); |
// AuthenticatorFactory interface. |
@@ -35,11 +40,22 @@ class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory { |
const buzz::XmlElement* first_message) OVERRIDE; |
private: |
+ bool IsThirdPartyAuthenticationEnabled() const; |
+ |
std::string local_jid_prefix_; |
+ |
+ // Used for all host authenticators. |
std::string local_cert_; |
scoped_refptr<RsaKeyPair> key_pair_; |
+ |
+ // Used only for shared secret host authenticators. |
SharedSecretHash shared_secret_hash_; |
+ // Used only for third party host authenticators. |
+ GURL token_url_; |
+ GURL token_validation_url_; |
+ ThirdPartyHostAuthenticator::TokenValidatorFactory* token_validator_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory); |
}; |