RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
UserRealmDiscoveryResponse.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 USERREALMDISCOVERYRESPONSE
10 #define USERREALMDISCOVERYRESPONSE
11 
12 #include <types.h>
13 #include <CallState.h>
14 
15 namespace rmsauth {
16 
18 {
19  static const String& Tag() {static const String tag="UserRealmDiscoveryResponse"; return tag;}
20 
21  String version_;
22  String accountType_;
23  String federationProtocol_;
24  String federationMetadataUrl_;
25  String federationActiveAuthUrl_;
26 
27 public:
28  const String& version() const { return version_; }
29  const String& accountType() const { return accountType_; }
30  const String& federationProtocol() const { return federationProtocol_; }
31  const String& federationMetadataUrl() const { return federationMetadataUrl_; }
32  const String& federationActiveAuthUrl() const { return federationActiveAuthUrl_; }
33 
34  void version(const String& val) { version_ = val; }
35  void accountType(const String& val) { accountType_ = val; }
36  void federationProtocol(const String& val) { federationProtocol_ = val; }
37  void federationMetadataUrl(const String& val) { federationMetadataUrl_ = val; }
38  void federationActiveAuthUrl(const String& val) { federationActiveAuthUrl_ = val; }
39 
40  static UserRealmDiscoveryResponse createByDiscoveryAsync(const String& userRealmUri, const String& userName, CallStatePtr callState);
41 
42  struct JsonNames {
43  const String version = "ver";
44  const String accountType = "account_type";
45  const String federationProtocol = "federation_protocol";
46  const String federationMetadataUrl = "federation_metadata_url";
47  const String federationActiveAuthUrl = "federation_active_auth_url";
48  };
49 
50  static const JsonNames& jsonNames()
51  {
52  static const JsonNames jsonNames{};
53  return jsonNames;
54  }
55 };
56 
57 } // namespace rmsauth {
58 
59 #endif // USERREALMDISCOVERYRESPONSE
60 
Definition: UserRealmDiscoveryResponse.h:17
Definition: UserRealmDiscoveryResponse.h:42
Definition: AcquireTokenForClientHandler.h:14