PDFDecryptor
Overview
PDFDecryptor is a class in Aspose.Pdf FOSS for Java.
Decrypts individual PDF objects (strings and streams).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
active | boolean | Read | Returns true if the decryptor has a valid key. |
encryptionKey | byte[] | Read | Returns a copy of the file encryption key currently used for decryption. |
customHandler | ICustomSecurityHandler | Read | Returns the custom handler used by this decryptor, if any. |
Methods
| Signature | Description |
|---|---|
PDFDecryptor(encryptionKey: byte[], encDict: PDFEncryptionDict) | Creates a decryptor with the given key and encryption parameters. |
PDFDecryptor(encryptionKey: byte[], encDict: PDFEncryptionDict, customHandler: ICustomSecurityHandler) | Creates a decryptor backed by a custom security handler. |
decrypt(data: byte[], objectNumber: int, generationNumber: int) → byte[] | Decrypts data belonging to a specific PDF object. |
isActive() → boolean | Returns true if the decryptor has a valid key. |
getEncryptionKey() → byte[] | Returns a copy of the file encryption key currently used for decryption. |
getCustomHandler() → ICustomSecurityHandler | Returns the custom handler used by this decryptor, if any. |