Class PubKeySecurityHandler
java.lang.Object
com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
com.itextpdf.kernel.crypto.securityhandler.PubKeySecurityHandler
- Direct Known Subclasses:
-
PubSecHandlerUsingAes128
,PubSecHandlerUsingStandard40
- Author:
- Aiken Sam (aikensam@ieee.org)
-
Field Summary
Fields inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
extra, md5, mkey, nextObjectKey, nextObjectKeySize
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAllRecipients
(Certificate[] certs, int[] permissions) protected byte[]
computeGlobalKey
(String messageDigestAlgorithm, boolean encryptMetadata) protected static byte[]
computeGlobalKeyOnReading
(PdfDictionary encryptionDictionary, PrivateKey certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata, String digestAlgorithm) protected PdfArray
protected abstract String
protected abstract void
initKey
(byte[] globalKey, int keyLength) protected void
initKeyAndFillDictionary
(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly) protected void
initKeyAndReadDictionary
(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata) protected abstract void
setPubSecSpecificHandlerDicEntries
(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
getDecryptor, getEncryptionStream, setHashKeyForNextObject
-
Constructor Details
-
PubKeySecurityHandler
protected PubKeySecurityHandler()
-
-
Method Details
-
computeGlobalKey
-
computeGlobalKeyOnReading
protected static byte[] computeGlobalKeyOnReading(PdfDictionary encryptionDictionary, PrivateKey certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata, String digestAlgorithm) -
addAllRecipients
-
createRecipientsArray
-
setPubSecSpecificHandlerDicEntries
protected abstract void setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) -
getDigestAlgorithm
-
initKey
protected abstract void initKey(byte[] globalKey, int keyLength) -
initKeyAndFillDictionary
protected void initKeyAndFillDictionary(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly) -
initKeyAndReadDictionary
protected void initKeyAndReadDictionary(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
-