public class PubSecHandlerUsingAes128 extends PubKeySecurityHandler
extra, md5, mkey, nextObjectKey, nextObjectKeySize| Constructor and Description |
|---|
PubSecHandlerUsingAes128(PdfDictionary encryptionDictionary,
Certificate[] certs,
int[] permissions,
boolean encryptMetadata,
boolean embeddedFilesOnly) |
PubSecHandlerUsingAes128(PdfDictionary encryptionDictionary,
Key certificateKey,
Certificate certificate,
String certificateKeyProvider,
IExternalDecryptionProcess externalDecryptionProcess,
boolean encryptMetadata) |
| Modifier and Type | Method and Description |
|---|---|
IDecryptor |
getDecryptor() |
protected String |
getDigestAlgorithm() |
OutputStreamEncryption |
getEncryptionStream(OutputStream os) |
protected void |
initKey(byte[] globalKey,
int keyLength) |
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 |
setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary,
boolean encryptMetadata,
boolean embeddedFilesOnly) |
addAllRecipients, computeGlobalKey, computeGlobalKeyOnReading, createRecipientsArray, initKeyAndFillDictionary, initKeyAndReadDictionarypublic PubSecHandlerUsingAes128(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly)
public PubSecHandlerUsingAes128(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
public OutputStreamEncryption getEncryptionStream(OutputStream os)
getEncryptionStream in class SecurityHandlerpublic IDecryptor getDecryptor()
getDecryptor in class SecurityHandlerpublic void setHashKeyForNextObject(int objNumber,
int objGeneration)
SecurityHandlersetHashKeyForNextObject in class SecurityHandlerprotected String getDigestAlgorithm()
getDigestAlgorithm in class PubKeySecurityHandlerprotected void initKey(byte[] globalKey,
int keyLength)
initKey in class PubKeySecurityHandlerprotected void setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
setPubSecSpecificHandlerDicEntries in class PubKeySecurityHandlerCopyright © 1998–2020 iText Group NV. All rights reserved.