RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
ClientCredential.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 CLIENTCREDENTIAL_H
10 #define CLIENTCREDENTIAL_H
11 
12 #include "types.h"
13 #include "Exceptions.h"
14 #include "rmsauthExport.h"
15 
16 namespace rmsauth {
17 
18 class RMSAUTH_EXPORT ClientCredential
19 {
20 public:
21  ClientCredential(const String& clientId, const String& clientSecret);
22 
23  const String& clientId() const { return clientId_; }
24  const String& clientSecret() const { return clientSecret_; }
25 
26 private:
27  String clientId_;
28  String clientSecret_;
29 };
30 
31 using ClientCredentialPtr = ptr<ClientCredential>;
32 
33 } // namespace rmsauth {
34 
35 #endif // CLIENTCREDENTIAL_H
Definition: AcquireTokenForClientHandler.h:14
Definition: ClientCredential.h:18