PdfEncryptionDetails
内容
[
隐藏
]Inheritance: java.lang.Object
public class PdfEncryptionDetails
包含 pdf 加密的详细信息。
构造函数
| 构造函数 | 描述 |
|---|---|
| PdfEncryptionDetails(String userPassword, String ownerPassword, int permissions, PdfEncryptionAlgorithm encryptionAlgorithm) | 初始化 PdfEncryptionDetailsCore 类的新实例。 |
方法
PdfEncryptionDetails(String userPassword, String ownerPassword, int permissions, PdfEncryptionAlgorithm encryptionAlgorithm)
public PdfEncryptionDetails(String userPassword, String ownerPassword, int permissions, PdfEncryptionAlgorithm encryptionAlgorithm)
初始化 PdfEncryptionDetailsCore 类的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| userPassword | java.lang.String | 用户密码。 |
| ownerPassword | java.lang.String | 所有者密码。 |
| permissions | int | 权限。 |
| encryptionAlgorithm | PdfEncryptionAlgorithm | 加密算法。 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getEncryptionAlgorithm()
public PdfEncryptionAlgorithm getEncryptionAlgorithm()
返回加密模式。
Returns: PdfEncryptionAlgorithm - The encryption algorithm.
getOwnerPassword()
public String getOwnerPassword()
返回所有者密码。
使用正确的所有者密码打开文档(假设它与用户密码不同)可获得对文档的完整(所有者)访问权限。此无限制的访问包括更改文档密码和访问权限的能力。
Returns: java.lang.String - 所有者密码。
getPermissions()
public int getPermissions()
返回权限。
Returns: int - 权限。
getUserPassword()
public String getUserPassword()
返回用户密码。
使用正确的用户密码打开文档(或打开没有用户密码的文档)可根据文档的加密字典中指定的用户访问权限执行额外操作。
Returns: java.lang.String - 用户密码。
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setEncryptionAlgorithm(PdfEncryptionAlgorithm value)
public void setEncryptionAlgorithm(PdfEncryptionAlgorithm value)
设置加密模式。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | PdfEncryptionAlgorithm | 加密算法。 |
setOwnerPassword(String value)
public void setOwnerPassword(String value)
设置所有者密码。
使用正确的所有者密码打开文档(假设它与用户密码不同)可获得对文档的完整(所有者)访问权限。此无限制的访问包括更改文档密码和访问权限的能力。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | java.lang.String | 所有者密码。 |
setPermissions(int value)
public void setPermissions(int value)
设置权限。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | int | 权限。 |
setUserPassword(String value)
public void setUserPassword(String value)
设置用户密码。
使用正确的用户密码打开文档(或打开没有用户密码的文档)可根据文档的加密字典中指定的用户访问权限执行额外操作。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | java.lang.String | 用户密码。 |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |