Go to the source code of this file.
|
DLL_PUBLIC VPolicyPtr | VPolicyCreate () |
|
DLL_PUBLIC void | VPolicyDestroy (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VSetOwner (VPolicyPtr vPolicyPtr, const char *owner) |
|
DLL_PUBLIC VSTATUS | VGetOwner (VPolicyPtr vPolicyPtr, char **owner) |
|
DLL_PUBLIC VSTATUS | VShareWithUsers (VPolicyPtr vPolicyPtr, const char **users, unsigned int usersCount) |
|
DLL_PUBLIC VSTATUS | VRemoveUsers (VPolicyPtr vPolicyPtr, const char **users, unsigned int usersCount) |
|
DLL_PUBLIC VSTATUS | VGetSharedUsers (VPolicyPtr vPolicyPtr, char ***users, unsigned int *usersCount) |
|
DLL_PUBLIC VSTATUS | VEnableReshare (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VDisableReshare (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VIsReshareEnabled (VPolicyPtr vPolicyPtr, bool *flag) |
|
DLL_PUBLIC VSTATUS | VEnableWatermarking (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VDisableWatermarking (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VIsWatermarkingEnabled (VPolicyPtr vPolicyPtr, bool *flag) |
|
DLL_PUBLIC VSTATUS | VEnablePrint (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VDisablePrint (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VIsPrintEnabled (VPolicyPtr vPolicyPtr, bool *flag) |
|
DLL_PUBLIC VSTATUS | VEnableCopy (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VDisableCopy (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VIsCopyEnabled (VPolicyPtr vPolicyPtr, bool *flag) |
|
DLL_PUBLIC VSTATUS | VEnablePersistentProtection (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VDisablePersistentProtection (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VIsPersistentProtection (VPolicyPtr vPolicyPtr, bool *flag) |
|
DLL_PUBLIC VSTATUS | VEnablePreventDownload (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VDisablePreventDownload (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VIsPreventDownloadEnabled (VPolicyPtr vPolicyPtr, bool *flag) |
|
DLL_PUBLIC VSTATUS | VExpireInMins (VPolicyPtr vPolicyPtr, unsigned int mins) |
|
DLL_PUBLIC VSTATUS | VExpireInDays (VPolicyPtr vPolicyPtr, unsigned int days) |
|
DLL_PUBLIC VSTATUS | VAddExpiration (VPolicyPtr vPolicyPtr, const char *expirationDate) |
|
DLL_PUBLIC VSTATUS | VRemoveExpiration (VPolicyPtr vPolicyPtr) |
|
DLL_PUBLIC VSTATUS | VGetExpiration (VPolicyPtr vPolicyPtr, char **expirationTimeStamp) |
|
Access to the TDF data will be revoked for all users at the specified date. The owner will retain access after the expiration time is reached. The expiration date is specified in ISO-8601 format, and can include a time component. Ex: 2019-05-24T16:12:41Z
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
expirationDate | - Expiration date when the TDF will expire, null terminated string. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns off copy policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns off persistent protection policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns off prevent download policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns off print policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns off reshare policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns off watermarking policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns on copy policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns on persistent protection policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns on prevent download policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns on print policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns on reshare policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Turns on watermarking policy control flag
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Set the expiration in days
Access to the TDF data will be revoked for all users in the number of days specified, starting from the time this call is made. The owner will retain access after the expiration time is reached.
- Parameters
-
days | - days until expiration |
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Set the expiration in minutes
Access to the TDF data will be revoked for all users in the number of minutes specified, starting from the time this call is made. The owner will retain access after the expiration time is reached.
- Parameters
-
mins | - minutes until expiration |
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Return the expiration time(in ISO-8601 format) of the TDF.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
expirationTimeStamp | - The expiration time(in ISO-8601 format) of the TDF. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success NOTE: The caller is responsible for freeing the expirationTimeStamp.
Get the owner of the policy
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
owner | - The owner's email address, null terminated string. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success NOTE: The caller is responsible for freeing the owner.
Return all the user who have access to the TDF.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
users | - Holds the users who have access to the TDF. |
usersCount | - Total shared user count. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success NOTE: The caller is responsible for freeing users array.
Return the status of 'Copy' control flag.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
flag | - True, if 'Copy' control flag is set. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Return the status of 'PersistenProtection' control flag.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
flag | - True, if 'PersistentProtection' control flag is set. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Return the status of 'PreventDownload' control flag.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
flag | - True, if 'PreventDownload' control flag is set. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Return the status of 'Print' control flag.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
flag | - True, if 'Print' control flag is set. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Return the status of 'Reshare' control flag.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
flag | - True, if 'Reshare' control flag is set. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Return the status of 'Watermarking' control flag.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
flag | - True, if 'Watermarking' control flag is set. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Create a new policy opaque object.
- Returns
- VPolicyPtr opaque object. NOTE: On failure returns NULL ptr.
Destruct the policy instance.
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
Remove the expiration
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Remove access to the TDF file/data for the users in the array
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
users | - Share the TDF with the users in the users array |
usersCount | - Total user count in the array. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Set the owner of the policy
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
owner | - The owner's email address, null terminated string. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success NOTE: By default, the owner is the address that was used when the client instance was created. This method will change the owner to the specified email address for the instance.
Add access to the TDF file/data for the users in the array
- Parameters
-
vPolicyPtr | - The pointer to policy opaque object. |
users | - Share the TDF with the users in the users array |
usersCount | - Total user count in the array. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success