OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_ | 5 #ifndef REMOTING_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_ |
6 #define REMOTING_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_ | 6 #define REMOTING_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 public: | 22 public: |
23 // Creates a new factory. |token_url| and |token_validation_url| are the | 23 // Creates a new factory. |token_url| and |token_validation_url| are the |
24 // third party authentication service URLs, obtained via policy. |key_pair_| | 24 // third party authentication service URLs, obtained via policy. |key_pair_| |
25 // is used by the host to authenticate with the service by signing the token. | 25 // is used by the host to authenticate with the service by signing the token. |
26 TokenValidatorFactoryImpl( | 26 TokenValidatorFactoryImpl( |
27 const ThirdPartyAuthConfig& third_party_auth_config, | 27 const ThirdPartyAuthConfig& third_party_auth_config, |
28 scoped_refptr<RsaKeyPair> key_pair, | 28 scoped_refptr<RsaKeyPair> key_pair, |
29 scoped_refptr<net::URLRequestContextGetter> request_context_getter); | 29 scoped_refptr<net::URLRequestContextGetter> request_context_getter); |
30 | 30 |
31 // TokenValidatorFactory interface. | 31 // TokenValidatorFactory interface. |
32 scoped_ptr<protocol::TokenValidator> CreateTokenValidator( | 32 std::unique_ptr<protocol::TokenValidator> CreateTokenValidator( |
33 const std::string& local_jid, | 33 const std::string& local_jid, |
34 const std::string& remote_jid) override; | 34 const std::string& remote_jid) override; |
35 | 35 |
36 private: | 36 private: |
37 ~TokenValidatorFactoryImpl() override; | 37 ~TokenValidatorFactoryImpl() override; |
38 | 38 |
39 ThirdPartyAuthConfig third_party_auth_config_; | 39 ThirdPartyAuthConfig third_party_auth_config_; |
40 scoped_refptr<RsaKeyPair> key_pair_; | 40 scoped_refptr<RsaKeyPair> key_pair_; |
41 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 41 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(TokenValidatorFactoryImpl); | 43 DISALLOW_COPY_AND_ASSIGN(TokenValidatorFactoryImpl); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace remoting | 46 } // namespace remoting |
47 | 47 |
48 #endif // REMOTING_HOST_URL_FETCHER_TOKEN_VALIDATOR_FACTORY_H_ | 48 #endif // REMOTING_HOST_URL_FETCHER_TOKEN_VALIDATOR_FACTORY_H_ |
OLD | NEW |