13 #ifndef VIRTRU_TDF3_SDK_VIRTRU_CLIENT_H
14 #define VIRTRU_TDF3_SDK_VIRTRU_CLIENT_H
34 class VirtruTDF3Builder;
35 class EncryptFileParams;
46 Client(std::string owner, std::string appId);
55 Client(std::string owner, std::string apiKey, std::string apiSecret);
63 Client(std::string owner, std::string organizationName, std::string clientId, std::string clientSecret);
95 void setKasUrl(
const std::string& kasUrl);
106 void setEasUrl(
const std::string& easUrl);
111 void setAcmUrl(
const std::string& acmUrl);
205 void decryptFile(
const std::string& inFilepath,
const std::string& outFilepath);
210 void decryptRCAToFile(
const std::string& rcaLink,
const std::string& outFilepath);
215 void decryptStream(std::istream& inStream, std::ostream& outStream);
264 void revokeFiles(
const std::vector<std::string>& files);
290 #endif // VIRTRU_TDF3_SDK_VIRTRU_CLIENT_H
void setRCAServiceURL(const std::string &rcaServiceURL)
std::string encryptStream(const EncryptStreamParams &encryptStreamParams)
void setAcmUrl(const std::string &acmUrl)
Definition: virtru_policy.h:27
std::pair< std::string, std::string > encryptString(const EncryptStringParams &encryptStringParams)
void revokePolicy(const std::string &policyUUID)
void decryptRCAToFile(const std::string &rcaLink, const std::string &outFilepath)
void setSecureReaderURL(const std::string &srUrl)
LogLevel
Defines a log level.
Definition: tdf_constants.h:52
Client()=delete
Default constructor is not supported.
void updatePolicyForFile(const Policy &policy, const std::string &tdfFile)
void setExternalLogger(std::shared_ptr< ILogger > externalLogger, LogLevel logLevel=LogLevel::Current)
std::pair< std::string, std::string > encryptStringToRCA(const EncryptStringParams &encryptStringParams)
std::string prepareForEncrypt(const EncryptParams &encryptParams)
Prepare tdf3 builder object for encrypt.
std::unique_ptr< VirtruTDF3Builder > m_virtruTDF3Builder
Data.
Definition: virtru_client.h:284
KeyAccessType
Definition: tdf_constants.h:40
void setKeyAccessType(KeyAccessType keyAccessType)
void revokeFiles(const std::vector< std::string > &files)
void decryptFile(const std::string &inFilepath, const std::string &outFilepath)
void updatePolicyForUUIDs(const Policy &policy, const std::vector< std::string > &policyUUIDs)
void setProtocol(Protocol protocol)
std::pair< std::string, std::string > encryptFileToRCA(const EncryptFileParams &encryptFileParam)
void setEasUrl(const std::string &easUrl)
void setKasUrl(const std::string &kasUrl)
Policy fetchPolicyForUUID(const std::string &policyUUID)
std::string decryptString(std::string tdfData)
Definition: virtru_credentials.h:31
Definition: virtru_client.h:37
void setOffline(bool state)
Definition: virtru_encrypt_stream_params.h:24
void enableConsoleLogging(LogLevel logLevel=LogLevel::Current)
Definition: virtru_encrypt_file_params.h:25
Definition: virtru_encrypt_string_params.h:24
void updatePolicyForFiles(const Policy &policy, const std::vector< std::string > &files)
void revokeFile(const std::string &tdfFile)
Protocol
Definition: tdf_constants.h:45
Definition: virtru_encrypt_params.h:24
std::string decryptRCAToString(const std::string &rcaLink)
void setEncryptedStorageURL(const std::string &encryptedStorageUrl)
Client & operator=(const Client &client)=delete
Assignment operator.
void setCertAuthority(const std::string &certAuthority)
void updatePolicyForUUID(const Policy &policy, const std::string &policyUUID)
std::string encryptFile(const EncryptFileParams &encryptFileParam)
void setOIDCProviderUrl(const std::string &oidcUrl)
no-op, value indicates current level should be retained
void decryptStream(std::istream &inStream, std::ostream &outStream)
void initClient()
A helper method to update the TDF builder;.
~Client()
Destroy the Client instance.
void revokePolicies(const std::vector< std::string > &policyUUIDs)