public class StandardHandlerUsingAes256 extends StandardSecurityHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
encryptMetadata |
permissions, PERMS_MASK_1_FOR_REVISION_2, PERMS_MASK_1_FOR_REVISION_3_OR_GREATER, PERMS_MASK_2, usedOwnerPasswordextra, md5, mkey, nextObjectKey, nextObjectKeySize| Constructor and Description |
|---|
StandardHandlerUsingAes256(PdfDictionary encryptionDictionary,
byte[] password) |
StandardHandlerUsingAes256(PdfDictionary encryptionDictionary,
byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean encryptMetadata,
boolean embeddedFilesOnly,
PdfVersion version) |
| Modifier and Type | Method and Description |
|---|---|
IDecryptor |
getDecryptor() |
OutputStreamEncryption |
getEncryptionStream(OutputStream os) |
boolean |
isEncryptMetadata() |
void |
setHashKeyForNextObject(int objNumber,
int objGeneration)
Note: For most of the supported security handlers algorithm to calculate encryption key for particular object
is the same.
|
equalsArray, generateOwnerPasswordIfNullOrEmpty, getIsoBytes, getPermissions, isUsedOwnerPassword, setStandardHandlerDicEntriespublic StandardHandlerUsingAes256(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly, PdfVersion version)
public StandardHandlerUsingAes256(PdfDictionary encryptionDictionary, byte[] password)
public boolean isEncryptMetadata()
public void setHashKeyForNextObject(int objNumber,
int objGeneration)
SecurityHandlersetHashKeyForNextObject in class SecurityHandlerpublic OutputStreamEncryption getEncryptionStream(OutputStream os)
getEncryptionStream in class SecurityHandlerpublic IDecryptor getDecryptor()
getDecryptor in class SecurityHandlerCopyright © 1998–2020 iText Group NV. All rights reserved.