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

NameTypeAccessDescription
activebooleanReadReturns true if the encryptor has a valid key.
customHandlerICustomSecurityHandlerReadReturns the custom handler used by this encryptor, if any.

méthodes

SignatureDescription
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()booleanReturns true if the encryptor has a valid key.
getCustomHandler()ICustomSecurityHandlerReturns the custom handler used by this encryptor, if any.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français