PDFEncrypteur
Vue de l’ensemble
‘PDFEncryptor’ est une classe dans Aspose.PDF FOSS pour Java.
Encryptez les objets PDF individuels (strings et courants).
Cette classe fournit 5 méthodes pour travailler avec les objets PDFEncryptor dans les programmes Java. Les méthodologies disponibles comprennent: ‘PDFEnCrypter’, ’encrypt’, getCustomHandler', ‘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.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
active | boolean | Read | Returns true if the encryptor has a valid key. |
customHandler | ICustomSecurityHandler | Read | Returns the custom handler used by this encryptor, if any. |
méthodes
| Signature | Description |
|---|---|
PDFEncryptor(encryptionKey: byte[], encDict: PDFEncryptionDict) | Creates an encryptor with the given key and encryption parameters. |
PDFEncryptor(encryptionKey: byte[], encDict: PDFEncryptionDict, customHandler: ICustomSecurityHandler) | Creates an encryptor backed by a custom security handler. |
encrypt(data: byte[], objectNumber: int, generationNumber: int) → byte[] | Encrypts data belonging to a specific PDF object. |
isActive() → boolean | Returns true if the encryptor has a valid key. |
getCustomHandler() → ICustomSecurityHandler | Returns the custom handler used by this encryptor, if any. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise