Class PubSecHandlerUsingAes256
java.lang.Object
com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
com.itextpdf.kernel.crypto.securityhandler.PubKeySecurityHandler
com.itextpdf.kernel.crypto.securityhandler.PubSecHandlerUsingAes128
com.itextpdf.kernel.crypto.securityhandler.PubSecHandlerUsingAes256
- Direct Known Subclasses:
-
PubSecHandlerUsingAesGcm
-
Field Summary
Fields inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
extra, md5, mkey, nextObjectKey, nextObjectKeySize -
Constructor Summary
ConstructorsConstructorDescriptionPubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly) PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidinitKey(byte[] globalKey, int keyLength) protected voidInit md5 message digest.voidsetHashKeyForNextObject(int objNumber, int objGeneration) Note: For most of the supported security handlers algorithm to calculate encryption key for particular object is the same.protected voidsetPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.PubSecHandlerUsingAes128
getDecryptor, getEncryptionStreamMethods inherited from class com.itextpdf.kernel.crypto.securityhandler.PubKeySecurityHandler
addAllRecipients, computeGlobalKey, computeGlobalKeyOnReading, createRecipientsArray, initKeyAndFillDictionary, initKeyAndReadDictionaryMethods inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
getMkey, getNextObjectKey
-
Constructor Details
-
PubSecHandlerUsingAes256
public PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly) -
PubSecHandlerUsingAes256
public PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
-
-
Method Details
-
setHashKeyForNextObject
public void setHashKeyForNextObject(int objNumber, int objGeneration) Description copied from class:SecurityHandlerNote: For most of the supported security handlers algorithm to calculate encryption key for particular object is the same.- Overrides:
-
setHashKeyForNextObjectin classPubSecHandlerUsingAes128 - Parameters:
-
objNumber- number of particular object for encryption -
objGeneration- generation of particular object for encryption
-
getDigestAlgorithm
- Overrides:
-
getDigestAlgorithmin classPubSecHandlerUsingAes128
-
initKey
protected void initKey(byte[] globalKey, int keyLength) - Overrides:
-
initKeyin classPubSecHandlerUsingAes128
-
setPubSecSpecificHandlerDicEntries
protected void setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) - Overrides:
-
setPubSecSpecificHandlerDicEntriesin classPubSecHandlerUsingAes128
-
initMd5MessageDigest
protected void initMd5MessageDigest()Init md5 message digest.- Overrides:
-
initMd5MessageDigestin classSecurityHandler
-