OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 GOOGLE_APIS_GAIA_OAUTH_REQUEST_SIGNER_H_ | 5 #ifndef GOOGLE_APIS_GAIA_OAUTH_REQUEST_SIGNER_H_ |
6 #define GOOGLE_APIS_GAIA_OAUTH_REQUEST_SIGNER_H_ | 6 #define GOOGLE_APIS_GAIA_OAUTH_REQUEST_SIGNER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 | 14 |
15 // Implements the OAuth request signing process as described here: | 15 // Implements the OAuth request signing process as described here: |
16 // http://oauth.net/core/1.0/#signing_process | 16 // http://oauth.net/core/1.0/#signing_process |
17 // | 17 // |
18 // NOTE: Currently the only supported SignatureMethod is HMAC_SHA1_SIGNATURE | 18 // NOTE: Currently the only supported SignatureMethod is HMAC_SHA1_SIGNATURE |
19 class OAuthRequestSigner { | 19 class OAuthRequestSigner { |
20 public: | 20 public: |
21 enum SignatureMethod { | 21 enum SignatureMethod { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const std::string& consumer_secret, | 91 const std::string& consumer_secret, |
92 const std::string& token_key, | 92 const std::string& token_key, |
93 const std::string& token_secret, | 93 const std::string& token_secret, |
94 std::string* signed_result); | 94 std::string* signed_result); |
95 | 95 |
96 private: | 96 private: |
97 DISALLOW_IMPLICIT_CONSTRUCTORS(OAuthRequestSigner); | 97 DISALLOW_IMPLICIT_CONSTRUCTORS(OAuthRequestSigner); |
98 }; | 98 }; |
99 | 99 |
100 #endif // GOOGLE_APIS_GAIA_OAUTH_REQUEST_SIGNER_H_ | 100 #endif // GOOGLE_APIS_GAIA_OAUTH_REQUEST_SIGNER_H_ |
OLD | NEW |