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