类 ProtectionHandler::PublishingSettings
用于创建 ProtectionHandler 以保护新内容的设置。
总结
成员 | 说明 |
---|---|
public Publishing设置(const std::shared_ptr<ProtectionDescriptor& protectionDescriptor>) | 发布设置用于强制保护内容的构造函数。 |
public Publishing设置(const std::shared_ptr<ProtectionDescriptor& protectionDescriptor>, const std::vector<uint8_t>& serializedPublishingLicense) | 发布设置用于联机重新发布的构造函数。 |
public Publishing设置(const std::shared_ptr<ProtectionDescriptor& protectionDescriptor>, const std::shared_ptr<ProtectionHandler& protectionHandler>) | 发布设置用于脱机重新发布的构造函数。 |
public std::shared_ptr<ProtectionDescriptor> GetProtectionDescriptor() const | 尚未记录。 |
public std::shared_ptr<ProtectionHandler> GetProtectionHandlerForRepublish() const | 获取用于重新发布方案的保护处理程序。 |
public bool GetIsAuditedExtractionAllowed() const | 获取是否允许非 MIP 感知应用程序打开受保护的内容。 |
public void SetIsAuditedExtractionAllowed(bool isAuditedExtractionAllowed) | 设置是否允许非 MIP 感知应用程序打开受保护的内容。 |
public bool GetIsDeprecatedAlgorithmPreferred() const | 获取是否首选已弃用的加密算法 (ECB) 以实现向后兼容性。 |
public void SetIsDeprecatedAlgorithmPreferred(bool isDeprecatedAlgorithmPreferred) | 设置是否首选已弃用的加密算法 (ECB) 以实现向后兼容性。 |
public void SetDelegatedUserEmail(const std::string& delegatedUserEmail) | 设置委托用户。 |
public const std::string& GetDelegatedUserEmail() const | 获取委托用户。 |
public bool IsPublishingFormatJson() const | 获取返回的 pl 是否为 json 格式(xml 格式被更广泛接受并且是默认格式)。 |
public void SetPublishingFormatJson(bool isPublishingFormatJson) | 设置返回的 pl 是否采用 json 格式(xml 格式被更广泛地接受并且是默认值)。 |
public bool GetRegenerateContentKey() const | 获取是否应在重新发布期间重新生成内容密钥和 ID。 |
public void SetRegenerateContentKey(bool regenerateContentKey) | 设置是否应在重新发布期间重新生成内容密钥和 ID。 |
public void SetPreLicenseUserEmail(const std::string& preLicenseUserEmail) | 设置预许可证用户。 |
public const std::string& GetPreLicenseUserEmail() const | 获取预许可证用户。 |
public const std::vector<uint8_t>& GetPublishingLicenseForRepublish() const | 获取序列化发布许可证。 |
public void SetRequestPreLicense(std::shared_ptr<PublishingUseLicenseRequest publishingUseLicenseRequest> ) | 设置这将导致发布请求包含预许可证。 |
public std::shared_ptr<PublishingUseLicenseRequest> GetPreLicenseRequest() const | 获取预许可请求。 |
public bool GetRepairLabelIdAllowed() const | 获取是否可以在重新发布时将标签 ID 添加到发布许可证。 |
public void SetRepairLabelIdAllowed(bool repairAllowed) | 设置是否可以在重新发布时将标签 ID 添加到发布许可证。 |
public std::string GetApplicationScenarioId() const | 获取应用程序提供的用于与服务器关联的场景 ID。 |
public void SetApplicationScenarioId(std::string applicationScenarioId) | 设置应用程序提供的场景 ID。 |
public bool GetIsOfflineOnly() const | 获取 ProtectionEngine 操作是否允许联机 HTTP 操作。 |
public virtual void SetIsOfflineOnly(bool isOfflineOnly) | 设置 ProtectionEngine 操作是否允许联机 HTTP 操作。 |
public void SetCustom设置(const std::vector<std::p air<std::string, std::string>>& custom设置) | 设置用于功能检查和测试的自定义设置。 |
public const std::vector<std::p air<std::string, std::string>>& GetCustom设置() const | 获取用于功能检查和测试的自定义设置。 |
成员
PublishingSettings 函数
发布设置用于强制保护内容的构造函数。
参数:
- protectionDescriptor:保护详细信息
PublishingSettings 函数
发布设置用于联机重新发布的构造函数。
参数:
protectionDescriptor:新保护详细信息
serializedPublishingLicense:原始保护许可证
PublishingSettings 函数
发布设置用于脱机重新发布的构造函数。
参数:
protectionDescriptor:新保护详细信息
protectionHandler:原始保护处理程序
GetProtectionDescriptor 函数
尚未记录。
GetProtectionHandlerForRepublish 函数
获取用于重新发布方案的保护处理程序。
GetIsAuditedExtractionAllowed 函数
获取是否允许非 MIP 感知应用程序打开受保护的内容。
返回结果:是否允许非 MIP 感知应用程序打开受保护的内容
SetIsAuditedExtractionAllowed 函数
设置是否允许非 MIP 感知应用程序打开受保护的内容。
参数:
- isAuditedExtractionAllowed:是否允许非 MIP 感知应用程序打开受保护的内容
GetIsDeprecatedAlgorithmPreferred 函数
获取是否首选已弃用的加密算法 (ECB) 以实现向后兼容性。
返回:如果首选弃用的加密算法
SetIsDeprecatedAlgorithmPreferred 函数
设置是否首选已弃用的加密算法 (ECB) 以实现向后兼容性。
参数:
- isDeprecatedAlgorithmPreferred:如果首选已弃用的加密算法
SetDelegatedUserEmail 函数
设置委托用户。
参数:
- delegatedUserEmail:委托电子邮件。
当代表其他用户对用户/应用程序进行身份验证时,将指定委托用户
GetDelegatedUserEmail 函数
获取委托用户。
返回结果:委托用户。当代表其他用户对用户/应用程序进行身份验证时,将指定委托用户
IsPublishingFormatJson 函数
获取返回的 pl 是否为 json 格式(xml 格式被更广泛接受并且是默认格式)。
返回结果:True(如果设置为 json 格式输出)。
SetPublishingFormatJson 函数
设置返回的 pl 是否采用 json 格式(xml 格式被更广泛地接受并且是默认值)。
参数:
- isPublishingFormatJson:是否启用了 json 格式。
GetRegenerateContentKey 函数
获取是否应在重新发布期间重新生成内容密钥和 ID。
返回:如果应重新生成内容密钥和 ID,则返回 True。 否则为 false。
SetRegenerateContentKey 函数
设置是否应在重新发布期间重新生成内容密钥和 ID。
参数:
- regenerateContentKey:如果应重新生成内容密钥和 ID。
SetPreLicenseUserEmail 函数
设置预许可证用户。
参数:
- preLicenseUserEmail:预许可证用户
如果未指定预许可证用户,则不会获得预许可证
GetPreLicenseUserEmail 函数
获取预许可证用户。
返回结果:预许可证用户
GetPublishingLicenseForRepublish 函数
获取序列化发布许可证。
返回结果:序列化发布许可证
SetRequestPreLicense 函数
设置这将导致发布请求包含预许可证。
参数:
- publishingUseLicenseRequest:预许可请求
如果未指定预许可请求,则不会获取预许可证
GetPreLicenseRequest 函数
获取预许可请求。
返回:预许可请求
GetRepairLabelIdAllowed 函数
获取是否可以在重新发布时将标签 ID 添加到发布许可证。
返回:如此 如果可以将保护描述符中的标签信息添加到发布许可证,则仅当脱机保护用于重新发布时才会生效。
SetRepairLabelIdAllowed 函数
设置是否可以在重新发布时将标签 ID 添加到发布许可证。
参数:
- repairAllowed:如果可将保护描述符中的标签信息数据添加到发布许可证
仅当脱机保护用于重新发布时,才会生效。 应仅用于将标签添加到缺少它的临时保护。
GetApplicationScenarioId 函数
获取应用程序提供的用于与服务器关联的场景 ID。
返回结果:应用程序场景 ID
SetApplicationScenarioId 函数
设置应用程序提供的场景 ID。
参数:
- The:应用程序场景 ID
GetIsOfflineOnly 函数
获取 ProtectionEngine 操作是否允许联机 HTTP 操作。
返回:如果不允许 HTTP 操作,则为 True;否则如果返回 true,则仅当已缓存必要的内容时,操作才会成功。 如果未找到所需的信息,则会引发 mip::NetworkError。 消耗 - 内容以前已解密,并且其未过期的许可证已缓存。 保护 - 缓存了未过期的模板并加载了用户证书-未定义
SetIsOfflineOnly 函数
设置 ProtectionEngine 操作是否允许联机 HTTP 操作。
参数:
- isOfflineOnly:如果不允许 HTTP 操作,则为 true,则为 false
如果设置为 true,则仅当已缓存必要的内容时,操作才会成功。 如果未找到所需的信息,则会引发 mip::NetworkError。 消耗 - 内容以前已解密,并且其未过期的许可证已缓存。 保护 - 缓存了未过期的模板并加载了用户证书-未定义
SetCustomSettings 函数
设置用于功能检查和测试的自定义设置。
参数:
- customSettings:名称/值对列表。
GetCustomSettings 函数
获取用于功能检查和测试的自定义设置。
返回:名称/值对的列表。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈