Class ReaderProperties

java.lang.Object
com.itextpdf.kernel.pdf.ReaderProperties

public class ReaderProperties extends Object
  • Field Details

    • password

      protected byte[] password
    • certificateKey

      protected Key certificateKey
    • certificate

      protected Certificate certificate
    • certificateKeyProvider

      protected String certificateKeyProvider
    • externalDecryptionProcess

      protected IExternalDecryptionProcess externalDecryptionProcess
    • memoryLimitsAwareHandler

      protected MemoryLimitsAwareHandler memoryLimitsAwareHandler
  • Constructor Details

    • ReaderProperties

      public ReaderProperties()
  • Method Details

    • setPassword

      public ReaderProperties setPassword (byte[] password)
      Defines the password which will be used if the document is encrypted with standard encryption. This could be either user or owner password.
      Parameters:
      password - the password to use in order to open the document
      Returns:
      this ReaderProperties instance
    • setPublicKeySecurityParams

      public ReaderProperties setPublicKeySecurityParams (Certificate certificate, Key certificateKey, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess)
      Defines the certificate which will be used if the document is encrypted with public key encryption (see Pdf 1.7 specification, 7.6.4. Public-Key Security Handlers)
      Parameters:
      certificate - the recipient Certificate, serves as recipient identifier
      certificateKey - the recipient private Key to the certificate
      certificateKeyProvider - the certificate key provider id for Security.getProvider(String)
      externalDecryptionProcess - the external decryption process to be used
      Returns:
      this ReaderProperties instance
    • setPublicKeySecurityParams

      public ReaderProperties setPublicKeySecurityParams (Certificate certificate, IExternalDecryptionProcess externalDecryptionProcess)
      Defines the certificate which will be used if the document is encrypted with public key encryption (see Pdf 1.7 specification, 7.6.4. Public-Key Security Handlers)
      Parameters:
      certificate - the recipient Certificate, serves as recipient identifier
      externalDecryptionProcess - the external decryption process to be used
      Returns:
      this ReaderProperties instance
    • setMemoryLimitsAwareHandler

      public ReaderProperties setMemoryLimitsAwareHandler (MemoryLimitsAwareHandler memoryLimitsAwareHandler)
      Sets the memory handler which will be used to handle decompressed PDF streams.
      Parameters:
      memoryLimitsAwareHandler - the memory handler which will be used to handle decompressed PDF streams
      Returns:
      this ReaderProperties instance