Virtru SDK for C++
2.8.0
Virtru C++ SDK library - Create, Read, and Manage TDF3 Files
|
Classes | |
class | INetwork |
struct | BufferSpan |
class | Exception |
struct | LogMessage |
class | ILogger |
class | AuditService |
class | Client |
class | ClientConfig |
class | ConfigService |
class | Credentials |
class | CredentialsAppId |
class | CredentialsHmac |
class | CredentialsOidc |
class | EncryptDataParams |
class | EncryptFileParams |
class | EncryptParams |
class | EncryptStreamParams |
class | EncryptStringParams |
class | Policy |
Typedefs | |
using | HttpHeaders = std::unordered_map< std::string, std::string > |
using | HTTPServiceCallback = std::function< void(unsigned int statusCode, std::string &&response)> |
typedef uint8_t | VBYTE |
using | TDFDataSourceCb = std::function< BufferSpan(Status &) > |
using | TDFDataSinkCb = std::function< Status(BufferSpan)> |
typedef std::map< std::string, std::string > | OIDCHeaders |
Functions | |
void | _ThrowVirtruException (std::string &&errorStringPrefix, const char *fileName, unsigned int lineNumber, int code=VIRTRU_GENERAL_ERROR) |
Variables | |
const uint32_t | kNTDFMaxKeyIterations = 8388606 |
constexpr auto | kKasUrl = "https://api.virtru.com/kas" |
constexpr auto | kAcmUrl = "https://api.virtru.com/acm" |
constexpr auto | kEasUrl = "https://api.virtru.com/accounts" |
constexpr auto | kRcaUrl = "https://api.virtru.com/rca" |
constexpr auto | kEncryptedStorageUrl = "https://api.virtru.com/encrypted-storage" |
constexpr auto | kSecureReaderUrl = "https://secure.virtru.com/start?htmlProtocol=1" |
static constexpr auto | kKasUrlUpsert = "/upsert" |
static constexpr auto | kEntityobjectURL = "/entityobject" |
static constexpr auto | kUserSettingsURL = "/userSettings" |
static constexpr auto | kRegisterClientPubKey = "/appIdBundle/public-key" |
static constexpr auto | kRevokeUrl = "/api/policies/revoke" |
static constexpr auto | kPoliciesUrl = "/api/policies" |
static constexpr auto | kAcceptHeaderKey = "Accept" |
static constexpr auto | kAcceptHeaderValue = "application/json" |
static constexpr auto | kUserAgentHeaderKey = "User-Agent" |
static constexpr auto | kVirtruSignedRequestToken = "x-virtru-signed-request-token" |
static constexpr auto | kDefaultSegmentSize = (2 * 1024 * 1024) |
static constexpr auto | kFlagReshare = "forward" |
static constexpr auto | kFlagOneClick = "no-auth" |
static constexpr auto | kFlagWatermark = "watermark" |
static constexpr auto | kFlagPrint = "print" |
static constexpr auto | kFlagCopy = "copy" |
static constexpr auto | kFlagPersistentProtection = "persistent-protection" |
static constexpr auto | kFlagPreventDownload = "prevent-download" |
static constexpr auto | kFlagExpiration = "expiration" |
static constexpr auto | kTDFOwner = "owner" |
static constexpr auto | kPolicyOwner = "owner" |
static constexpr auto | kDisplayName = "displayName" |
static constexpr auto | kDisplayMessage = "displayMessage" |
static constexpr auto | kFileProvider = "fileProvider" |
static constexpr auto | kEmail = "email" |
static constexpr auto | kUuid = "uuid" |
static constexpr auto | kUuids = "uuids" |
static constexpr auto | kDissems = "dissems" |
static constexpr auto | kSimplePolicy = "simplePolicy" |
static constexpr auto | kEmailUsers = "emailUsers" |
static constexpr auto | kAuthorizations = "authorizations" |
static constexpr auto | kState = "state" |
static constexpr auto | kStateActive = "active" |
static constexpr auto | kStateDeactivated = "deactivated" |
static constexpr auto | kActiveBegin = "activeBegin" |
static constexpr auto | kActiveEnd = "activeEnd" |
static constexpr auto | kIsManaged = "isManaged" |
static constexpr auto | kAccessedBy = "accessedBy" |
static constexpr auto | k_Id = "_id" |
static constexpr auto | k_Rev = "_rev" |
static constexpr auto | kId = "id" |
static constexpr auto | kVersion = "version" |
static constexpr auto | kType = "type" |
static constexpr auto | kOwner = "owner" |
static constexpr auto | kLicenseOwnerId = "licenseOwnerId" |
static constexpr auto | kKey = "key" |
static constexpr auto | kValue = "value" |
static constexpr auto | kVirtruDataOwner = "virtru:data:owner" |
static constexpr auto | kHtmlTDFExtension = ".html" |
static constexpr auto | kZipTDFExtension = ".tdf" |
static constexpr auto | kCPPFileProvider = "virtru-sdk-cpp" |
static constexpr auto | kDefaultDisplayMessage = "Encrypted using Virtru C++ SDK" |
static constexpr auto | kPythonDisplayMessage = "Encrypted using Virtru Python SDK" |
static constexpr auto | kPythonFileProvider = "virtru-sdk-python" |
static constexpr auto | kCPPPlatform = "virtru-sdk-cpp" |
static constexpr auto | kPythonPlatform = "virtru-sdk-python" |
static constexpr auto | kAppIdBundle = "appIdBundle" |
static constexpr auto | kOrgPublicKey = "orgPublicKey" |
static constexpr auto | kDelegatedKey = "delegatedKey" |
static constexpr auto | kFingerprint = "fingerprint" |
static constexpr auto | kPublicKeyFingerprint = "publicKeyFingerprint" |
The Client is the entry point for all the major Virtru operations, such as encrypt, decrypt and policy management. The user of this class should catch virtru::Expection for any failure.
using virtru::HttpHeaders = typedef std::unordered_map<std::string, std::string> |
using virtru::HTTPServiceCallback = typedef std::function<void(unsigned int statusCode, std::string &&response)> |
typedef std::map<std::string, std::string> virtru::OIDCHeaders |
using virtru::TDFDataSinkCb = typedef std::function < Status(BufferSpan)> |
using virtru::TDFDataSourceCb = typedef std::function < BufferSpan(Status &) > |
typedef uint8_t virtru::VBYTE |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
inline |
Utility method to throw exception with filename and line number.
errorStringPrefix | - The error message. |
fileName | - The source file name. |
lineNumber | - The current line number in the source file. |
code | - The error code - default 1 |
|
static |
|
static |
|
static |
|
static |
|
static |
constexpr auto virtru::kAcmUrl = "https://api.virtru.com/acm" |
|
static |
|
static |
|
static |
User Settings.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
constexpr auto virtru::kEasUrl = "https://api.virtru.com/accounts" |
|
static |
|
static |
constexpr auto virtru::kEncryptedStorageUrl = "https://api.virtru.com/encrypted-storage" |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
constexpr auto virtru::kKasUrl = "https://api.virtru.com/kas" |
|
static |
|
static |
|
static |
const uint32_t virtru::kNTDFMaxKeyIterations = 8388606 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
constexpr auto virtru::kRcaUrl = "https://api.virtru.com/rca" |
|
static |
|
static |
constexpr auto virtru::kSecureReaderUrl = "https://secure.virtru.com/start?htmlProtocol=1" |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |