RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
RequestParameters.h
1 /*
2  * ======================================================================
3  * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
4  * Licensed under the MIT License.
5  * See LICENSE.md in the project root for license information.
6  * ======================================================================
7 */
8 
9 #ifndef REQUESTPARAMETERS_H
10 #define REQUESTPARAMETERS_H
11 
12 #include "types.h"
13 #include "ClientKey.h"
14 #include "OAuthConstants.h"
15 
16 namespace rmsauth {
17 
19 {
20 public:
21  RequestParameters(const String& resource, const ClientKeyPtr clientKey);
22  String& operator[](const String& key);
23  const String& operator[](const String& key) const;
24  void addParam(const String& key, const String& value);
25  String toString() const;
26 
27  const String& extraQueryParameter() const {return extraQueryParameter_;}
28  void extraQueryParameter(const String& val) {extraQueryParameter_ = val;}
29 
30  static String uriEncode(const String& value);
31 
32 private:
33  void addClientKey(const ClientKey& clientKey);
34 
35 private:
36  StringMap params_;
37  String extraQueryParameter_;
38 };
39 
40 } // namespace rmsauth {
41 
42 #endif // REQUESTPARAMETERS_H
Definition: RequestParameters.h:18
Definition: ClientKey.h:20
Definition: AcquireTokenForClientHandler.h:14