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_encrypt_params.h
Go to the documentation of this file.
1 /*
2 * Copyright © 2018 - 2019 Virtru Corporation
3 *
4 * SPDX - License - Identifier: MIT
5 *
6 */
7 //
8 // Virtru TDF3 SDK
9 //
10 // Created by Sujan Reddy on 2019/09/25.
11 //
12 
13 #ifndef VIRTRU_TDF3_SDK_VIRTRU_ENCRYPT_PARAM_H
14 #define VIRTRU_TDF3_SDK_VIRTRU_ENCRYPT_PARAM_H
15 
16 #include <string>
17 #include "virtru_policy.h"
18 
19 namespace virtru {
20 
22  class Client;
23 
24  class EncryptParams {
25  public:
28 
30  EncryptParams(const EncryptParams& encryptedParams);
31 
33  EncryptParams& operator=(const EncryptParams& encryptedParams);
34 
36  EncryptParams(EncryptParams&& encryptedParams) noexcept ;
37 
39  EncryptParams& operator=(EncryptParams&& encryptedParams);
40 
41  public:
45  void setMimeType(const std::string& mimeType);
46 
51  void setPolicy(const Policy& policy);
52 
56  void setDisplayName(const std::string& displayName);
57 
60  void setDisplayMessage(const std::string& displayMessage);
61 
64  void shareWithUsers(const std::vector<std::string>& users);
65 
66  protected:
68  EncryptParams();
69 
70  friend Client;
71 
72  std::string m_tdfOwner;
73  std::string m_mimeType;
74  std::string m_displayName;
75  std::string m_displayMessage;
76  std::vector<std::string> m_sharedUsers;
78  };
79 }
80 
81 #endif //VIRTRU_TDF3_SDK_VIRTRU_ENCRYPT_PARAM_H
EncryptParams()
Constructor.
std::string m_displayMessage
Definition: virtru_encrypt_params.h:75
std::string m_tdfOwner
Definition: virtru_encrypt_params.h:72
Definition: virtru_policy.h:27
std::string m_mimeType
Definition: virtru_encrypt_params.h:73
std::vector< std::string > m_sharedUsers
Definition: virtru_encrypt_params.h:76
void setPolicy(const Policy &policy)
void setDisplayName(const std::string &displayName)
void shareWithUsers(const std::vector< std::string > &users)
friend Client
Definition: virtru_encrypt_params.h:70
Definition: virtru_encrypt_params.h:24
void setDisplayMessage(const std::string &displayMessage)
EncryptParams & operator=(const EncryptParams &encryptedParams)
Assignment operator.
void setMimeType(const std::string &mimeType)
std::string m_displayName
Definition: virtru_encrypt_params.h:74
Policy m_policy
Definition: virtru_encrypt_params.h:77
~EncryptParams()
Destructor.