public final class EncryptionContext extends Object
| Modifier and Type | Field and Description |
|---|---|
StandardSecurity |
security |
| Constructor and Description |
|---|
EncryptionContext(StandardSecurity security) |
| Modifier and Type | Method and Description |
|---|---|
void |
documentId(byte[] documentId)
Sets the document ID to use in those algorithms requiring it.
|
GeneralEncryptionAlgorithm |
encryptionAlgorithm() |
static GeneralEncryptionAlgorithm |
encryptionAlgorithmFromEncryptionDictionary(COSDictionary enc,
byte[] encryptionKey) |
public final StandardSecurity security
public EncryptionContext(StandardSecurity security)
public void documentId(byte[] documentId)
documentId - public GeneralEncryptionAlgorithm encryptionAlgorithm()
public static GeneralEncryptionAlgorithm encryptionAlgorithmFromEncryptionDictionary(COSDictionary enc, byte[] encryptionKey)
enc - GeneralEncryptionAlgorithm generated using the given encryption algorithm or null if unable to
generate.Copyright © 2020 sejda. All rights reserved.