Class PubSecHandlerUsingStandard40
java.lang.Object
com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
com.itextpdf.kernel.crypto.securityhandler.PubKeySecurityHandler
com.itextpdf.kernel.crypto.securityhandler.PubSecHandlerUsingStandard40
- Direct Known Subclasses:
-
PubSecHandlerUsingStandard128
-
Field Summary
Fields inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
extra, md5, mkey, nextObjectKey, nextObjectKeySize
-
Constructor Summary
ConstructorDescriptionPubSecHandlerUsingStandard40
(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly) PubSecHandlerUsingStandard40
(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected void
initKey
(byte[] globalKey, int keyLength) protected void
setPubSecSpecificHandlerDicEntries
(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.PubKeySecurityHandler
addAllRecipients, computeGlobalKey, computeGlobalKeyOnReading, createRecipientsArray, initKeyAndFillDictionary, initKeyAndReadDictionary
Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
setHashKeyForNextObject
-
Constructor Details
-
PubSecHandlerUsingStandard40
public PubSecHandlerUsingStandard40(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly) -
PubSecHandlerUsingStandard40
public PubSecHandlerUsingStandard40(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
-
-
Method Details
-
getEncryptionStream
- Specified by:
-
getEncryptionStream
in classSecurityHandler
-
getDecryptor
- Specified by:
-
getDecryptor
in classSecurityHandler
-
getDigestAlgorithm
- Specified by:
-
getDigestAlgorithm
in classPubKeySecurityHandler
-
initKey
protected void initKey(byte[] globalKey, int keyLength) - Specified by:
-
initKey
in classPubKeySecurityHandler
-
setPubSecSpecificHandlerDicEntries
protected void setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) - Specified by:
-
setPubSecSpecificHandlerDicEntries
in classPubKeySecurityHandler
-