public class StandardHandlerUsingStandard128 extends StandardHandlerUsingStandard40
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 |
---|
StandardHandlerUsingStandard128(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, boolean encryptMetadata) |
StandardHandlerUsingStandard128(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly, byte[] documentId) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculatePermissions(int permissions) |
protected void |
computeGlobalEncryptionKey(byte[] userPad, byte[] ownerKey, boolean encryptMetadata) |
protected byte[] |
computeOwnerKey(byte[] userPad, byte[] ownerPad) |
protected byte[] |
computeUserKey() |
protected boolean |
isValidPassword(byte[] uValue, byte[] userKey) |
protected void |
setSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) |
computeUserPassword, getDecryptor, getEncryptionStream
equalsArray, generateOwnerPasswordIfNullOrEmpty, getIsoBytes, getPermissions, isUsedOwnerPassword, setStandardHandlerDicEntries
setHashKeyForNextObject
public StandardHandlerUsingStandard128(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly, byte[] documentId)
public StandardHandlerUsingStandard128(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, boolean encryptMetadata)
protected void calculatePermissions(int permissions)
calculatePermissions
in class StandardHandlerUsingStandard40
protected byte[] computeOwnerKey(byte[] userPad, byte[] ownerPad)
computeOwnerKey
in class StandardHandlerUsingStandard40
protected void computeGlobalEncryptionKey(byte[] userPad, byte[] ownerKey, boolean encryptMetadata)
computeGlobalEncryptionKey
in class StandardHandlerUsingStandard40
protected byte[] computeUserKey()
computeUserKey
in class StandardHandlerUsingStandard40
protected void setSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
setSpecificHandlerDicEntries
in class StandardHandlerUsingStandard40
protected boolean isValidPassword(byte[] uValue, byte[] userKey)
isValidPassword
in class StandardHandlerUsingStandard40
Copyright © 1998–2023 iText Group NV. All rights reserved.