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()
Gets decryptor object.
|
OutputStreamEncryption |
getEncryptionStream(OutputStream os)
Gets a stream wrapper, responsible for encryption.
|
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, setPermissions, setStandardHandlerDicEntriesgetMkey, getNextObjectKeypublic 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)
SecurityHandlergetEncryptionStream in class StandardHandlerUsingStandard40os - OutputStream to be wrappedOutputStreamEncryption, responsible for encryption.public IDecryptor getDecryptor()
SecurityHandlergetDecryptor in class StandardHandlerUsingStandard40IDecryptorpublic void setHashKeyForNextObject(int objNumber,
int objGeneration)
SecurityHandlersetHashKeyForNextObject in class SecurityHandlerobjNumber - number of particular object for encryptionobjGeneration - generation of particular object for encryptionprotected void setSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
setSpecificHandlerDicEntries in class StandardHandlerUsingStandard128Copyright © 1998–2024 Apryse Group NV. All rights reserved.