PDFDécrypteur
Vue de l’ensemble
‘PDFDecryptor’ est une classe dans Aspose.PDF FOSS pour Java.
Décryptage des objets PDF individuels (strings et courants).
Cette classe fournit 6 méthodes pour travailler avec les objets PDFDecryptor dans les programmes Java. Les méthodologies disponibles comprennent: ‘PDFDecrypto’, ‘decrypt’, `getCustomHandler’, ‘getEncryptionKey’, ‘isActive’. Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘active’, ’customMandle’, ‘encryptionsKee’.
Propriétés
| 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. |
méthodes
| 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. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise