StandardSecurityHandler

StandardSecurityHandler

Overview

StandardSecurityHandler 是一个类在Java的FOSS中.

标准安全处理器验证密码并生成加密钥.

本类提供了7种方法,用于在Java程序中使用StandardSecurityHandler对象. 有的方法包括: StandardSecurityHandler, authenticate, authenticateOwnerPassword, authenticateUserPassword, getEncryptionDict, getEncryptionKey, isAuthenticated. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: authenticated, encryptionDict, encryptionKey.

Properties

NameTypeAccessDescription
authenticatedbooleanRead得到了认证.
encryptionKeybyte[]Read得到了加密钥.
encryptionDictPDFEncryptionDictRead得到了加密命令.

Methods

SignatureDescription
StandardSecurityHandler(encDict: PDFEncryptionDict, documentId: byte[])为给定的加密字典创建安全处理器.
authenticate(password: byte[])boolean试图使用给出的密码进行身份验证.
authenticateUserPassword(password: byte[])boolean尝试使用仅用户密码分支进行身份验证.
authenticateOwnerPassword(password: byte[])boolean尝试使用仅所有者密码分支进行身份验证.
isAuthenticated()boolean如果设置为"验证",则返回true.
getEncryptionKey()byte[]返回加密钥.
getEncryptionDict()PDFEncryptionDict返回加密命令.

See Also

 中文