public class StandardHandlerUsingAes128 extends StandardHandlerUsingStandard128
arcfour, documentId, keyLength, metadataPad, padpermissions, 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 |
|---|
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, isValidPasswordcomputeUserPasswordequalsArray, generateOwnerPasswordIfNullOrEmpty, getIsoBytes, getPermissions, isUsedOwnerPassword, setStandardHandlerDicEntriespublic 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
protected void setSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
setSpecificHandlerDicEntries in class StandardHandlerUsingStandard128
Copyright © 1998–2017 iText Group NV. All rights reserved.