ICustomSecurityHandler

ICustomSecurityHandler

Overview

ICustomSecurityHandler 是一个界面在Aspose.PDF FOSS for .NET.

可插入自定义安全处理器 实现此来处理非标准/过项 (例如:.

这个接口提供了在NET程序中与ICustomSecurityHandler对象工作的9种方法. 有的方法包括: CalculateEncryptionKey, Decrypt, Encrypt, EncryptPermissions, GetOwnerKey, GetUserKey, Initialize, IsOwnerPassword, IsUserPassword. 所有公众成员在安装了Aspose.PDF FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: Filter, KeyLength, Revision, SubFilter, Version.

Properties

NameTypeAccessDescription
FilterstringRead选项注册的名称是:.
SubFilterstringRead/SubFilter 登录的操作员是.
VersionintRead算法版本 (PDF/Encrypt/V).
RevisionintRead标准处理器修订 (PDF /Encrypt /R) 由发送加密字典的处理员报告.
KeyLengthintRead关键长度分为零件.

Methods

SignatureDescription
Initialize(parameters: EncryptionParameters)从解析/加密参数开始处理.
CalculateEncryptionKey(password: string)从用户密码中导出每个文档的加密钥.
GetUserKey(userPassword: string)计算给定的用户密码的/U值.
GetOwnerKey(userPassword: string, ownerPassword: string)计算给定的用户/所有者密码对的 /O值.
IsOwnerPassword(password: string)当密码与所有者密钥相匹配时返回true.
IsUserPassword(password: string)当密码与用户密钥相匹配时返回true.
EncryptPermissions(permissions: int)密码 / Perms字节串给出的权限 (修订版5+).
Encrypt(data: byte[], objectNumber: int, generation: int, key: byte[])用从键+对象Number +生成中衍生的每个对应密钥加密一个PDF对照内容流/字符串.
Decrypt(data: byte[], objectNumber: int, generation: int, key: byte[])代码的反面.

See Also

 中文