Microsoft Information Protection SDK - C 1.17
API Reference Documentation for C
Loading...
Searching...
No Matches
protection_descriptor_builder_cc.h
Go to the documentation of this file.
1/*
2 *
3 * Copyright (c) Microsoft Corporation.
4 * All rights reserved.
5 *
6 * This code is licensed under the MIT License.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files(the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions :
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 *
26 */
33#ifndef API_MIP_PROTECTION_DESCRIPTOR_BUILDER_CC_H_
34#define API_MIP_PROTECTION_DESCRIPTOR_BUILDER_CC_H_
35
37
39
44
55MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionDescriptorBuilderFromUserRights(
57 const int64_t userRightsCount,
60
71MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionDescriptorBuilderFromUserRoles(
73 const int64_t userRolesCount,
76
86MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionDescriptorBuilderFromTemplate(
87 const char* templateId,
90
100MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionDescriptorBuilderFromProtectionDescriptor(
104
118MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionDescriptorBuilderFromLicenseType(
126
137MIP_CC_API(mip_cc_result) MIP_CC_CreateProtectionDescriptorBuilderFromSerializedTemplate(
138 const uint8_t* serializedTemplate,
142
152MIP_CC_API(mip_cc_result) MIP_CC_BuildProtectionDescriptor(
156
166MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetName(
168 const char* name,
170
180MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetDescription(
182 const char* description,
184
194MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetContentValidUntil(
198
199
208MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetAllowOfflineAccess(
212
222MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetReferrer(
224 const char* uri,
226
236MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetEncryptedAppData(
240
250MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetSignedAppData(
254
264MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetDoubleKeyUrl(
266 const char* doubleKeyUrl,
268
279MIP_CC_API(mip_cc_result) MIP_CC_ProtectionDescriptorBuilder_SetLabelInfo(
281 const char* labelId,
282 const char* tenantId,
284
290MIP_CC_API(void) MIP_CC_ReleaseProtectionDescriptorBuilder(mip_cc_protection_descriptor_builder protectionDescriptorBuilder);
291
292#endif // API_MIP_PROTECTION_DESCRIPTOR_BUILDER_CC_H_
mip_cc_protection_license_type
Definition protection_descriptor_builder_cc.h:40
@ MIP_PROTECTION_LICENSE_TYPE_ENCRYPT_ONLY
Definition protection_descriptor_builder_cc.h:42
@ MIP_PROTECTION_LICENSE_TYPE_DO_NOT_FORWARD
Definition protection_descriptor_builder_cc.h:41
const char const int64_t usersWithDefaultRightsCount
Definition protection_descriptor_builder_cc.h:121
const int64_t mip_cc_protection_descriptor_builder mip_cc_error * errorInfo
Definition protection_descriptor_builder_cc.h:59
const int64_t serializedTemplateSize
Definition protection_descriptor_builder_cc.h:139
const char ** usersWithDefaultRights
Definition protection_descriptor_builder_cc.h:120
const char * doubleKeyUrl
Definition protection_descriptor_builder_cc.h:266
const char * description
Definition protection_descriptor_builder_cc.h:182
const int64_t userRightsCount
Definition protection_descriptor_builder_cc.h:57
bool allowOfflineAccess
Definition protection_descriptor_builder_cc.h:210
const char * name
Definition protection_descriptor_builder_cc.h:168
const char * uri
Definition protection_descriptor_builder_cc.h:224
const int64_t mip_cc_protection_descriptor_builder * protectionDescriptorBuilder
Definition protection_descriptor_builder_cc.h:58
const char const int64_t const mip_cc_user_rights * additionalUsersAndRights
Definition protection_descriptor_builder_cc.h:122
int64_t contentValidUntil
Definition protection_descriptor_builder_cc.h:196
mip_cc_handle * mip_cc_protection_descriptor_builder
Definition protection_descriptor_builder_cc.h:38
mip_cc_protection_descriptor * protectionDescriptor
Definition protection_descriptor_builder_cc.h:154
const mip_cc_dictionary appData
Definition protection_descriptor_builder_cc.h:238
const int64_t userRolesCount
Definition protection_descriptor_builder_cc.h:73
const char const int64_t const mip_cc_user_rights const int64_t additionalUsersAndRightsCount
Definition protection_descriptor_builder_cc.h:123
MIP_CC_API(void) MIP_CC_ReleaseProtectionDescriptorBuilder(mip_cc_protection_descriptor_builder protectionDescriptorBuilder)
Release resources associated with a protection descriptor builder.
const char * labelId
Definition protection_descriptor_builder_cc.h:281
const char const char * tenantId
Definition protection_descriptor_builder_cc.h:282
Defines C-Style ProtectionDescriptor interface.
mip_cc_user_rights_result * userRights
Definition protection_descriptor_cc.h:473
mip_cc_user_roles_result * userRoles
Definition protection_descriptor_cc.h:490
mip_cc_result
API success/failure result.
Definition result_cc.h:44
Error information.
Definition error_cc.h:79
Opaque handle to MIP object.
Definition common_types_cc.h:44
A group of users and the rights associated with them.
Definition protection_descriptor_cc.h:60
A group of users and the roles associated with them.
Definition protection_descriptor_cc.h:70
mip_cc_guid * templateId
Definition template_descriptor_cc.h:55