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::EncryptStringParams Class Reference

#include <virtru_encrypt_string_params.h>

Inheritance diagram for virtru::EncryptStringParams:
virtru::EncryptParams

Public Member Functions

 EncryptStringParams (const std::string &plainText)
 
 EncryptStringParams (std::string &&plainText)
 
 ~EncryptStringParams ()
 
 EncryptStringParams ()=delete
 
 EncryptStringParams (const EncryptStringParams &encryptStreamParams)
 
EncryptStringParamsoperator= (const EncryptStringParams &encryptStreamParams)
 
 EncryptStringParams (EncryptStringParams &&encryptStreamParams) noexcept
 
EncryptStringParamsoperator= (EncryptStringParams &&encryptStreamParams)
 
void setMimeType (const std::string &mimeType)
 
void setPolicy (const Policy &policy)
 
void setDisplayName (const std::string &displayName)
 
void setDisplayMessage (const std::string &displayMessage)
 
void shareWithUsers (const std::vector< std::string > &users)
 

Protected Attributes

std::string m_tdfOwner
 
std::string m_mimeType
 
std::string m_displayName
 
std::string m_displayMessage
 
std::vector< std::string > m_sharedUsers
 
Policy m_policy
 

Private Attributes

friend Client
 
std::string m_plainData
 

Constructor & Destructor Documentation

virtru::EncryptStringParams::EncryptStringParams ( const std::string &  plainText)

Constructor

Parameters
plainText- The data to be encrypted.
virtru::EncryptStringParams::EncryptStringParams ( std::string &&  plainText)

Constructor

Parameters
plainText- The text to be encrypted.
virtru::EncryptStringParams::~EncryptStringParams ( )

Destructor.

virtru::EncryptStringParams::EncryptStringParams ( )
delete

Default constructor not supported.

virtru::EncryptStringParams::EncryptStringParams ( const EncryptStringParams encryptStreamParams)

Copy constructor.

virtru::EncryptStringParams::EncryptStringParams ( EncryptStringParams &&  encryptStreamParams)
noexcept

Move copy constructor.

Member Function Documentation

EncryptStringParams& virtru::EncryptStringParams::operator= ( const EncryptStringParams encryptStreamParams)

Assignment operator.

EncryptStringParams& virtru::EncryptStringParams::operator= ( EncryptStringParams &&  encryptStreamParams)

Move assignment operator.

void virtru::EncryptParams::setDisplayMessage ( const std::string &  displayMessage)
inherited

Set the display message for the tdf, this message shows up on the Virtru dashboard

Parameters
displayMessage- The display message for the tdf
void virtru::EncryptParams::setDisplayName ( const std::string &  displayName)
inherited

Set the display name for the tdf, this name shows up on the Virtru dashboard NOTE: If not set, the basename of inFilePath will be used

Parameters
displayName- The display name for the tdf
void virtru::EncryptParams::setMimeType ( const std::string &  mimeType)
inherited

Set the mime type (format) of the file that will be encrypted NOTE: The default will be 'application/octet-stream' if not specified

Parameters
mimeType- The mime type of the file
void virtru::EncryptParams::setPolicy ( const Policy policy)
inherited

Set the policy that to be applied to the tdf NOTE: If there is no policy defined for the tdf, default policy settings will be applied

Parameters
policy- The policy object
void virtru::EncryptParams::shareWithUsers ( const std::vector< std::string > &  users)
inherited

Add access to the TDF file/data for the users in the list

Parameters
users- Share the TDF with the users in the vector

Member Data Documentation

friend virtru::EncryptStringParams::Client
private
std::string virtru::EncryptParams::m_displayMessage
protectedinherited
std::string virtru::EncryptParams::m_displayName
protectedinherited
std::string virtru::EncryptParams::m_mimeType
protectedinherited
std::string virtru::EncryptStringParams::m_plainData
private
Policy virtru::EncryptParams::m_policy
protectedinherited
std::vector<std::string> virtru::EncryptParams::m_sharedUsers
protectedinherited
std::string virtru::EncryptParams::m_tdfOwner
protectedinherited

The documentation for this class was generated from the following file: