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, usedOwnerPassword
extra, 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) |
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, setStandardHandlerDicEntries
public StandardHandlerUsingAes256(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly)
public StandardHandlerUsingAes256(PdfDictionary encryptionDictionary, byte[] password)
public boolean isEncryptMetadata()
public void setHashKeyForNextObject(int objNumber, int objGeneration)
SecurityHandler
setHashKeyForNextObject
in class SecurityHandler
public OutputStreamEncryption getEncryptionStream(OutputStream os)
getEncryptionStream
in class SecurityHandler
public IDecryptor getDecryptor()
getDecryptor
in class SecurityHandler
Copyright © 1998–2016 iText Group NV. All rights reserved.