java.lang.Object
org.sejda.sambox.encryption.EncryptionContext
Context holding the current state of the encryption
- Author:
- Andrea Vacondio
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddocumentId(byte[] documentId) Sets the document ID to use in those algorithms requiring it.static GeneralEncryptionAlgorithmencryptionAlgorithmFromEncryptionDictionary(COSDictionary enc, byte[] encryptionKey)
-
Field Details
-
security
-
-
Constructor Details
-
EncryptionContext
-
-
Method Details
-
documentId
public void documentId(byte[] documentId) Sets the document ID to use in those algorithms requiring it.- Parameters:
documentId-
-
encryptionAlgorithm
-
encryptionAlgorithmFromEncryptionDictionary
public static GeneralEncryptionAlgorithm encryptionAlgorithmFromEncryptionDictionary(COSDictionary enc, byte[] encryptionKey) - Parameters:
enc-- Returns:
- a
GeneralEncryptionAlgorithmgenerated using the given encryption algorithm or null if unable to generate.
-