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_tdf3_constants.h
Go to the documentation of this file.
1 //
2 // Virtru TDF3 SDK
3 //
4 // Created by Pat Mancuso on 2019/05/06
5 // Copyright � 2019 Virtru. All rights reserved.
6 
7 #ifndef VIRTRU_TDF3_SDK_CONSTANTS_H
8 #define VIRTRU_TDF3_SDK_CONSTANTS_H
9 
10 namespace virtru {
11 
12  constexpr auto kKasUrl = "https://api.virtru.com/kas";
13  constexpr auto kAcmUrl = "https://api.virtru.com/acm";
14  constexpr auto kEasUrl = "https://api.virtru.com/accounts";
15  constexpr auto kRcaUrl = "https://api.virtru.com/rca";
16  constexpr auto kEncryptedStorageUrl = "https://api.virtru.com/encrypted-storage";
17 
18  constexpr auto kSecureReaderUrl = "https://secure.virtru.com/start?htmlProtocol=1";
19  static constexpr auto kKasUrlUpsert = "/upsert";
20  static constexpr auto kEntityobjectURL = "/entityobject";
21  static constexpr auto kUserSettingsURL = "/userSettings";
22  static constexpr auto kRegisterClientPubKey = "/appIdBundle/public-key";
23  static constexpr auto kRevokeUrl = "/api/policies/revoke";
24  static constexpr auto kPoliciesUrl = "/api/policies";
25 
26  static constexpr auto kAcceptHeaderKey = "Accept";
27  static constexpr auto kAcceptHeaderValue = "application/json";
28  static constexpr auto kUserAgentHeaderKey = "User-Agent";
29  static constexpr auto kVirtruSignedRequestToken = "x-virtru-signed-request-token";
30  static constexpr auto kDefaultSegmentSize = (2 * 1024 * 1024);
31 
32  // Virtru control flags
33  static constexpr auto kFlagReshare = "forward";
34  static constexpr auto kFlagOneClick = "no-auth";
35  static constexpr auto kFlagWatermark = "watermark";
36  static constexpr auto kFlagPrint = "print";
37  static constexpr auto kFlagCopy = "copy";
38  static constexpr auto kFlagPersistentProtection = "persistent-protection";
39  static constexpr auto kFlagPreventDownload = "prevent-download";
40 
41  static constexpr auto kFlagExpiration = "expiration";
42 
43  static constexpr auto kTDFOwner = "owner";
44  static constexpr auto kPolicyOwner = "owner";
45  static constexpr auto kDisplayName = "displayName";
46  static constexpr auto kDisplayMessage = "displayMessage";
47  static constexpr auto kFileProvider = "fileProvider";
48 
49  static constexpr auto kEmail = "email";
50  static constexpr auto kUuid = "uuid";
51  static constexpr auto kUuids = "uuids";
52  static constexpr auto kDissems = "dissems";
53  static constexpr auto kSimplePolicy = "simplePolicy";
54  static constexpr auto kEmailUsers = "emailUsers";
55  static constexpr auto kAuthorizations = "authorizations";
56  static constexpr auto kState = "state";
57  static constexpr auto kStateActive = "active";
58  static constexpr auto kStateDeactivated = "deactivated";
59  static constexpr auto kActiveBegin = "activeBegin";
60  static constexpr auto kActiveEnd = "activeEnd";
61  static constexpr auto kIsManaged = "isManaged";
62  static constexpr auto kAccessedBy = "accessedBy";
63 
64  static constexpr auto k_Id = "_id";
65  static constexpr auto k_Rev = "_rev";
66  static constexpr auto kId = "id";
67  static constexpr auto kVersion = "version";
68  static constexpr auto kType = "type";
69  static constexpr auto kOwner = "owner";
70  static constexpr auto kLicenseOwnerId = "licenseOwnerId";
71  static constexpr auto kKey = "key";
72  static constexpr auto kValue = "value";
73  static constexpr auto kVirtruDataOwner = "virtru:data:owner";
74 
75  static constexpr auto kHtmlTDFExtension = ".html";
76  static constexpr auto kZipTDFExtension = ".tdf";
77 
78  static constexpr auto kCPPFileProvider = "virtru-sdk-cpp";
79  static constexpr auto kDefaultDisplayMessage = "Encrypted using Virtru C++ SDK";
80  static constexpr auto kPythonDisplayMessage = "Encrypted using Virtru Python SDK";
81  static constexpr auto kPythonFileProvider = "virtru-sdk-python";
82 
83  static constexpr auto kCPPPlatform = "virtru-sdk-cpp";
84  static constexpr auto kPythonPlatform = "virtru-sdk-python";
85 
87  static constexpr auto kAppIdBundle = "appIdBundle";
88  static constexpr auto kOrgPublicKey = "orgPublicKey";
89  static constexpr auto kDelegatedKey = "delegatedKey";
90  static constexpr auto kFingerprint = "fingerprint";
91  static constexpr auto kPublicKeyFingerprint = "publicKeyFingerprint";
92 
93 }
94 
95 #endif
static constexpr auto kAcceptHeaderKey
Definition: virtru_tdf3_constants.h:26
static constexpr auto kOwner
Definition: virtru_tdf3_constants.h:69
static constexpr auto kEntityobjectURL
Definition: virtru_tdf3_constants.h:20
static constexpr auto kIsManaged
Definition: virtru_tdf3_constants.h:61
static constexpr auto kUserSettingsURL
Definition: virtru_tdf3_constants.h:21
static constexpr auto kDefaultSegmentSize
Definition: virtru_tdf3_constants.h:30
static constexpr auto kUserAgentHeaderKey
Definition: virtru_tdf3_constants.h:28
static constexpr auto kAuthorizations
Definition: virtru_tdf3_constants.h:55
constexpr auto kEncryptedStorageUrl
Definition: virtru_tdf3_constants.h:16
static constexpr auto kDisplayMessage
Definition: virtru_tdf3_constants.h:46
static constexpr auto kZipTDFExtension
Definition: virtru_tdf3_constants.h:76
static constexpr auto kFlagOneClick
Definition: virtru_tdf3_constants.h:34
static constexpr auto kDisplayName
Definition: virtru_tdf3_constants.h:45
static constexpr auto kPublicKeyFingerprint
Definition: virtru_tdf3_constants.h:91
static constexpr auto kEmailUsers
Definition: virtru_tdf3_constants.h:54
static constexpr auto k_Id
Definition: virtru_tdf3_constants.h:64
constexpr auto kRcaUrl
Definition: virtru_tdf3_constants.h:15
static constexpr auto kUuid
Definition: virtru_tdf3_constants.h:50
static constexpr auto k_Rev
Definition: virtru_tdf3_constants.h:65
static constexpr auto kPythonFileProvider
Definition: virtru_tdf3_constants.h:81
static constexpr auto kVirtruSignedRequestToken
Definition: virtru_tdf3_constants.h:29
static constexpr auto kPolicyOwner
Definition: virtru_tdf3_constants.h:44
static constexpr auto kCPPPlatform
Definition: virtru_tdf3_constants.h:83
static constexpr auto kActiveEnd
Definition: virtru_tdf3_constants.h:60
static constexpr auto kFileProvider
Definition: virtru_tdf3_constants.h:47
static constexpr auto kKey
Definition: virtru_tdf3_constants.h:71
static constexpr auto kRegisterClientPubKey
Definition: virtru_tdf3_constants.h:22
static constexpr auto kTDFOwner
Definition: virtru_tdf3_constants.h:43
static constexpr auto kFlagReshare
Definition: virtru_tdf3_constants.h:33
static constexpr auto kFingerprint
Definition: virtru_tdf3_constants.h:90
static constexpr auto kLicenseOwnerId
Definition: virtru_tdf3_constants.h:70
static constexpr auto kPythonPlatform
Definition: virtru_tdf3_constants.h:84
static constexpr auto kAppIdBundle
User Settings.
Definition: virtru_tdf3_constants.h:87
static constexpr auto kFlagPersistentProtection
Definition: virtru_tdf3_constants.h:38
constexpr auto kEasUrl
Definition: virtru_tdf3_constants.h:14
static constexpr auto kFlagExpiration
Definition: virtru_tdf3_constants.h:41
static constexpr auto kFlagPrint
Definition: virtru_tdf3_constants.h:36
static constexpr auto kHtmlTDFExtension
Definition: virtru_tdf3_constants.h:75
static constexpr auto kKasUrlUpsert
Definition: virtru_tdf3_constants.h:19
static constexpr auto kAcceptHeaderValue
Definition: virtru_tdf3_constants.h:27
constexpr auto kSecureReaderUrl
Definition: virtru_tdf3_constants.h:18
static constexpr auto kDelegatedKey
Definition: virtru_tdf3_constants.h:89
constexpr auto kAcmUrl
Definition: virtru_tdf3_constants.h:13
static constexpr auto kStateDeactivated
Definition: virtru_tdf3_constants.h:58
static constexpr auto kCPPFileProvider
Definition: virtru_tdf3_constants.h:78
static constexpr auto kFlagPreventDownload
Definition: virtru_tdf3_constants.h:39
static constexpr auto kStateActive
Definition: virtru_tdf3_constants.h:57
static constexpr auto kUuids
Definition: virtru_tdf3_constants.h:51
static constexpr auto kVirtruDataOwner
Definition: virtru_tdf3_constants.h:73
constexpr auto kKasUrl
Definition: virtru_tdf3_constants.h:12
static constexpr auto kFlagCopy
Definition: virtru_tdf3_constants.h:37
static constexpr auto kType
Definition: virtru_tdf3_constants.h:68
static constexpr auto kEmail
Definition: virtru_tdf3_constants.h:49
static constexpr auto kId
Definition: virtru_tdf3_constants.h:66
static constexpr auto kDissems
Definition: virtru_tdf3_constants.h:52
static constexpr auto kOrgPublicKey
Definition: virtru_tdf3_constants.h:88
static constexpr auto kValue
Definition: virtru_tdf3_constants.h:72
static constexpr auto kState
Definition: virtru_tdf3_constants.h:56
static constexpr auto kFlagWatermark
Definition: virtru_tdf3_constants.h:35
static constexpr auto kAccessedBy
Definition: virtru_tdf3_constants.h:62
static constexpr auto kSimplePolicy
Definition: virtru_tdf3_constants.h:53
static constexpr auto kDefaultDisplayMessage
Definition: virtru_tdf3_constants.h:79
static constexpr auto kPythonDisplayMessage
Definition: virtru_tdf3_constants.h:80
static constexpr auto kVersion
Definition: virtru_tdf3_constants.h:67
static constexpr auto kActiveBegin
Definition: virtru_tdf3_constants.h:59
static constexpr auto kRevokeUrl
Definition: virtru_tdf3_constants.h:23
static constexpr auto kPoliciesUrl
Definition: virtru_tdf3_constants.h:24