Class PDFEncryptionJCE.RevBefore5Engine

java.lang.Object
org.apache.fop.pdf.PDFEncryptionJCE.InitializationEngine
org.apache.fop.pdf.PDFEncryptionJCE.RevBefore5Engine
Direct Known Subclasses:
PDFEncryptionJCE.Rev2Engine, PDFEncryptionJCE.Rev3Engine
Enclosing class:
PDFEncryptionJCE

private abstract class PDFEncryptionJCE.RevBefore5Engine extends PDFEncryptionJCE.InitializationEngine
  • Field Details

    • padding

      protected final byte[] padding
      Padding for passwords.
  • Constructor Details

  • Method Details

    • computeOValue

      protected void computeOValue()
      Applies Algorithm 3.3 Page 79 of the PDF 1.4 Reference.
      Specified by:
      computeOValue in class PDFEncryptionJCE.InitializationEngine
    • createEncryptionKey

      protected void createEncryptionKey()
      Applies Algorithm 3.2 Page 78 of the PDF 1.4 Reference.
      Specified by:
      createEncryptionKey in class PDFEncryptionJCE.InitializationEngine
    • preparePassword

      protected byte[] preparePassword(String password)
      Adds padding to the password as directed in page 78 of the PDF 1.4 Reference.
      Specified by:
      preparePassword in class PDFEncryptionJCE.InitializationEngine
      Parameters:
      password - the password
      Returns:
      the password with additional padding if necessary
    • run

      void run()
      Overrides:
      run in class PDFEncryptionJCE.InitializationEngine
    • computeOValueStep3

      protected abstract byte[] computeOValueStep3(byte[] hash)
    • computeOValueStep7

      protected abstract byte[] computeOValueStep7(byte[] key, byte[] encryptionResult)
    • createEncryptionKeyStep6

      protected abstract byte[] createEncryptionKeyStep6(byte[] hash)