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
-
public class PubSecHandlerUsingAes256 extends PubSecHandlerUsingAes128
-
-
Field Summary
-
Fields inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
extra, md5, mkey, nextObjectKey, nextObjectKeySize
-
-
Constructor Summary
Constructors Constructor Description PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, java.security.cert.Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly)
PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, java.security.Key certificateKey, java.security.cert.Certificate certificate, java.lang.String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getDigestAlgorithm()
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)
-
Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.PubSecHandlerUsingAes128
getDecryptor, getEncryptionStream
-
Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.PubKeySecurityHandler
addAllRecipients, computeGlobalKey, computeGlobalKeyOnReading, createRecipientsArray, initKeyAndFillDictionary, initKeyAndReadDictionary
-
-
-
-
Constructor Detail
-
PubSecHandlerUsingAes256
public PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, java.security.cert.Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly)
-
PubSecHandlerUsingAes256
public PubSecHandlerUsingAes256(PdfDictionary encryptionDictionary, java.security.Key certificateKey, java.security.cert.Certificate certificate, java.lang.String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
-
-
Method Detail
-
setHashKeyForNextObject
public void setHashKeyForNextObject(int objNumber, int objGeneration)
Description copied from class:SecurityHandler
Note: For most of the supported security handlers algorithm to calculate encryption key for particular object is the same.- Overrides:
setHashKeyForNextObject
in classPubSecHandlerUsingAes128
- Parameters:
objNumber
- number of particular object for encryptionobjGeneration
- generation of particular object for encryption
-
getDigestAlgorithm
protected java.lang.String getDigestAlgorithm()
- Overrides:
getDigestAlgorithm
in classPubSecHandlerUsingAes128
-
initKey
protected void initKey(byte[] globalKey, int keyLength)
- Overrides:
initKey
in classPubSecHandlerUsingAes128
-
setPubSecSpecificHandlerDicEntries
protected void setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
- Overrides:
setPubSecSpecificHandlerDicEntries
in classPubSecHandlerUsingAes128
-
-