public class StandardHandlerUsingAes128 extends StandardHandlerUsingStandard128
arcfour, documentId, keyLength, metadataPad, pad
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 |
---|
StandardHandlerUsingAes128(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, boolean encryptMetadata) |
StandardHandlerUsingAes128(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly, byte[] documentId) |
Modifier and Type | Method and Description |
---|---|
IDecryptor |
getDecryptor() |
OutputStreamEncryption |
getEncryptionStream(OutputStream os) |
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.
|
protected void |
setSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) |
calculatePermissions, computeGlobalEncryptionKey, computeOwnerKey, computeUserKey, isValidPassword
computeUserPassword
equalsArray, generateOwnerPasswordIfNullOrEmpty, getIsoBytes, getPermissions, isUsedOwnerPassword, setStandardHandlerDicEntries
public StandardHandlerUsingAes128(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly, byte[] documentId)
public StandardHandlerUsingAes128(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, boolean encryptMetadata)
public OutputStreamEncryption getEncryptionStream(OutputStream os)
getEncryptionStream
in class StandardHandlerUsingStandard40
public IDecryptor getDecryptor()
getDecryptor
in class StandardHandlerUsingStandard40
public void setHashKeyForNextObject(int objNumber, int objGeneration)
SecurityHandler
setHashKeyForNextObject
in class SecurityHandler
objNumber
- number of particular object for encryption
objGeneration
- generation of particular object for encryption
protected void setSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
setSpecificHandlerDicEntries
in class StandardHandlerUsingStandard128
Copyright © 1998–2023 iText Group NV. All rights reserved.