Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Unified Diff: remoting/protocol/me2me_host_authenticator_factory.h

Issue 12313085: Host-side third party token validation (Closed) Base URL: http://git.chromium.org/chromium/src.git@third_party_auth_protocol
Patch Set: Reviewer comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..4a091cbe018e3265bcbe2060ba2f2485650b9c0a 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,9 @@ 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,
+ scoped_ptr<ThirdPartyHostAuthenticator::TokenValidatorFactory>
+ token_validator_factory);
virtual ~Me2MeHostAuthenticatorFactory();
// AuthenticatorFactory interface.
@@ -36,10 +39,18 @@ class Me2MeHostAuthenticatorFactory : public AuthenticatorFactory {
private:
std::string local_jid_prefix_;
+
+ // Used for all host authenticators.
std::string local_cert_;
+
+ // Used only for shared secret host authenticators.
scoped_refptr<RsaKeyPair> key_pair_;
SharedSecretHash shared_secret_hash_;
+ // Used only for third party host authenticators.
+ scoped_ptr<ThirdPartyHostAuthenticator::TokenValidatorFactory>
+ token_validator_factory_;
+
DISALLOW_COPY_AND_ASSIGN(Me2MeHostAuthenticatorFactory);
};

Powered by Google App Engine
This is Rietveld 408576698