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 NET_HTTP_MAC_SIGNATURE_H_ | 5 #ifndef NET_HTTP_MAC_SIGNATURE_H_ |
6 #define NET_HTTP_MAC_SIGNATURE_H_ | 6 #define NET_HTTP_MAC_SIGNATURE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "crypto/hmac.h" | 13 #include "crypto/hmac.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class HttpMacSignature { | 17 class HttpMacSignature { |
wtc
2011/05/06 00:24:32
Please document this class and the GenerateAuthori
| |
18 public: | 18 public: |
19 HttpMacSignature(); | 19 HttpMacSignature(); |
20 ~HttpMacSignature(); | 20 ~HttpMacSignature(); |
21 | 21 |
22 // Returns whether this information is valid. | 22 // Returns whether this information is valid. |
23 bool AddStateInfo(const std::string& id, | 23 bool AddStateInfo(const std::string& id, |
24 const std::string& mac_key, | 24 const std::string& mac_key, |
25 const std::string& mac_algorithm, | 25 const std::string& mac_algorithm, |
26 const std::string& issuer); | 26 const std::string& issuer); |
27 | 27 |
(...skipping 27 matching lines...) Expand all Loading... | |
55 std::string host_; | 55 std::string host_; |
56 std::string port_; | 56 std::string port_; |
57 // TODO(abarth): body_hash_ | 57 // TODO(abarth): body_hash_ |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(HttpMacSignature); | 59 DISALLOW_COPY_AND_ASSIGN(HttpMacSignature); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace net | 62 } // namespace net |
63 | 63 |
64 #endif // NET_HTTP_MAC_SIGNATURE_H_ | 64 #endif // NET_HTTP_MAC_SIGNATURE_H_ |
OLD | NEW |