StandardSecurityHandler
StandardSecurityHandler
概述
StandardSecurityHandler 是一个类在Java的FOSS中.
标准安全处理器验证密码并生成加密钥.
本类提供了7种方法,用于在Java程序中使用StandardSecurityHandler对象. 有的方法包括: StandardSecurityHandler, authenticate, authenticateOwnerPassword, authenticateUserPassword, getEncryptionDict, getEncryptionKey, isAuthenticated. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: authenticated, encryptionDict, encryptionKey.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
authenticated | boolean | 阅读 | 获取已认证的。. |
encryptionKey | byte[] | 阅读 | 获取加密密钥。. |
encryptionDict | PDFEncryptionDict | 阅读 | 获取加密字典。. |
方法
| Signature | 描述情况 |
|---|---|
StandardSecurityHandler(encDict: PDFEncryptionDict, documentId: byte[]) | 为给定的加密字典创建安全处理器. |
authenticate(password: byte[]) → boolean | 试图使用给出的密码进行身份验证. |
authenticateUserPassword(password: byte[]) → boolean | 尝试使用仅用户密码分支进行身份验证. |
authenticateOwnerPassword(password: byte[]) → boolean | 尝试使用仅所有者密码分支进行身份验证. |
isAuthenticated() → boolean | 如果设置为"验证",则返回true. |
getEncryptionKey() → byte[] | 返回加密钥. |
getEncryptionDict() → PDFEncryptionDict | 返回加密命令. |