Class PubKeySecurityHandler

java.lang.Object
com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
com.itextpdf.kernel.crypto.securityhandler.PubKeySecurityHandler
Direct Known Subclasses:
PubSecHandlerUsingAes128, PubSecHandlerUsingStandard40

public abstract class PubKeySecurityHandler extends SecurityHandler
  • Constructor Details

    • PubKeySecurityHandler

      protected PubKeySecurityHandler()
  • Method Details

    • computeGlobalKey

      protected byte[] computeGlobalKey (String messageDigestAlgorithm, boolean encryptMetadata)
    • computeGlobalKeyOnReading

      protected static byte[] computeGlobalKeyOnReading (PdfDictionary encryptionDictionary, PrivateKey certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata, String digestAlgorithm)
    • addAllRecipients

      protected void addAllRecipients (Certificate[] certs, int[] permissions)
    • createRecipientsArray

      protected PdfArray createRecipientsArray()
    • setPubSecSpecificHandlerDicEntries

      protected abstract void setPubSecSpecificHandlerDicEntries (PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
    • getDigestAlgorithm

      protected abstract String 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)