StandardSecurityHandler

StandardSecurityHandler

概述

StandardSecurityHandler 是一个类在Java的FOSS中.

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

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

属性

名称:类型Access描述情况
authenticatedboolean阅读获取已认证的。.
encryptionKeybyte[]阅读获取加密密钥。.
encryptionDictPDFEncryptionDict阅读获取加密字典。.

方法

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返回加密命令.

查看更多

 中文