Class PDFEncryptionJCE.Rev5Engine

java.lang.Object
org.apache.fop.pdf.PDFEncryptionJCE.InitializationEngine
org.apache.fop.pdf.PDFEncryptionJCE.Rev5Engine
Enclosing class:
PDFEncryptionJCE

private class PDFEncryptionJCE.Rev5Engine extends PDFEncryptionJCE.InitializationEngine
  • Field Details

    • userValidationSalt

      private byte[] userValidationSalt
    • userKeySalt

      private byte[] userKeySalt
    • ownerValidationSalt

      private byte[] ownerValidationSalt
    • ownerKeySalt

      private byte[] ownerKeySalt
    • ueValue

      private byte[] ueValue
    • oeValue

      private byte[] oeValue
    • encryptMetadata

      private final boolean encryptMetadata
  • Constructor Details

  • Method Details

    • run

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

      protected String getEncryptionDictionaryPart()
      Overrides:
      getEncryptionDictionaryPart in class PDFEncryptionJCE.InitializationEngine
    • computeUValue

      protected void computeUValue()
      Algorithm 3.8-1 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)
      Specified by:
      computeUValue in class PDFEncryptionJCE.InitializationEngine
    • computeOValue

      protected void computeOValue()
      Algorithm 3.9-1 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)
      Specified by:
      computeOValue in class PDFEncryptionJCE.InitializationEngine
    • createEncryptionKey

      protected void createEncryptionKey()
      See Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3, page 20, paragraph 5.
      Specified by:
      createEncryptionKey in class PDFEncryptionJCE.InitializationEngine
    • preparePassword

      protected byte[] preparePassword(String password)
      Algorithm 3.2a-1 (page 19, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)
      Specified by:
      preparePassword in class PDFEncryptionJCE.InitializationEngine
    • computeUEValue

      private void computeUEValue()
      Algorithm 3.8-2 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)
    • computeOEValue

      private void computeOEValue()
      Algorithm 3.9-2 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)
    • computePermsValue

      public byte[] computePermsValue(int permissions)
      Algorithm 3.10 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)