Virtru SDK for C++  2.8.0
Virtru C++ SDK library - Create, Read, and Manage TDF3 Files
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
virtru_client_config.h
Go to the documentation of this file.
1 //
2 // Virtru TDF3 SDK
3 //
4 // Created by Sujan Reddy on 2019/07/12
5 // Copyright © 2019 Virtru. All rights reserved.
6 
7 #ifndef VIRTRU_TDF3_VIRTRU_CLIENT_CONFIG_H
8 #define VIRTRU_TDF3_VIRTRU_CLIENT_CONFIG_H
9 
10 #include <string>
11 
12 namespace virtru {
13 
16  class ClientConfig {
17  public: // Interface
18 
21  static ClientConfig &getInstance();
22 
25  void setKasUrl(const std::string& kasUrl);
26 
29  std::string getKasUrl() const;
30 
33  void setOIDCUrl(const std::string& oidcUrl);
34 
37  std::string getOIDCUrl() const;
38 
42  void setEasUrl(const std::string& easUrl);
43 
47  std::string getEasUrl() const;
48 
51  void setAcmUrl(const std::string& acmUrl);
52 
55  std::string getAcmUrl() const ;
56 
59  void setRcaUrl(const std::string& rcaUrl);
60 
63  std::string getRcaUrl() const;
64 
67  void setEncryptedStorageUrl(const std::string& encryptedStorageUrl);
68 
71  std::string getEncryptedStorageUrl() const;
72 
76  void setSecureReaderUrl(const std::string& srUrl);
77 
80  std::string getSecureReaderUrl() const;
81 
84  void setPlatform(const std::string& platform);
85 
88  std::string getPlatform() const;
89 
92  std::string getVirtruClient() const;
93 
96  std::string getBuildVersion() const;
97 
98  //TODO: Return the user agent passed on SDK platform.
99 
100  protected:
102  ClientConfig();
103 
105  ~ClientConfig() = default;
106 
107  private:
108  std::string m_kasUrl;
109  std::string m_oidcUrl;
110  std::string m_easUrl;
111  std::string m_acmUrl;
112  std::string m_rcaUrl;
114  std::string m_secureReaderUrl;
115  std::string m_platform;
116  };
117 
118 }
119 
120 
121 #endif // VIRTRU_TDF3_VIRTRU_CLIENT_CONFIG_H
void setOIDCUrl(const std::string &oidcUrl)
std::string m_easUrl
Definition: virtru_client_config.h:110
std::string m_kasUrl
Definition: virtru_client_config.h:108
std::string getAcmUrl() const
void setPlatform(const std::string &platform)
~ClientConfig()=default
Destructor.
std::string m_secureReaderUrl
Definition: virtru_client_config.h:114
std::string getSecureReaderUrl() const
std::string getPlatform() const
std::string m_rcaUrl
Definition: virtru_client_config.h:112
void setEasUrl(const std::string &easUrl)
std::string m_platform
Definition: virtru_client_config.h:115
static ClientConfig & getInstance()
void setEncryptedStorageUrl(const std::string &encryptedStorageUrl)
std::string getBuildVersion() const
std::string m_acmUrl
Definition: virtru_client_config.h:111
Definition: virtru_client_config.h:16
std::string getVirtruClient() const
std::string getEasUrl() const
std::string m_oidcUrl
Definition: virtru_client_config.h:109
std::string getKasUrl() const
void setKasUrl(const std::string &kasUrl)
void setAcmUrl(const std::string &acmUrl)
void setSecureReaderUrl(const std::string &srUrl)
ClientConfig()
Constructs a new ClientConfig instance.
std::string getEncryptedStorageUrl() const
std::string getOIDCUrl() const
std::string m_encryptedStorageUrl
Definition: virtru_client_config.h:113
std::string getRcaUrl() const
void setRcaUrl(const std::string &rcaUrl)