Package org.apache.fop.pdf
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 Summary
FieldsFields inherited from class org.apache.fop.pdf.PDFEncryptionJCE.InitializationEngine
encryptionLengthInBytes, oValue, permissions, preparedOwnerPassword, preparedUserPassword, uValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidApplies Algorithm 3.3 Page 79 of the PDF 1.4 Reference.protected abstract byte[]computeOValueStep3(byte[] hash) protected abstract byte[]computeOValueStep7(byte[] key, byte[] encryptionResult) protected voidApplies Algorithm 3.2 Page 78 of the PDF 1.4 Reference.protected abstract byte[]createEncryptionKeyStep6(byte[] hash) protected byte[]preparePassword(String password) Adds padding to the password as directed in page 78 of the PDF 1.4 Reference.(package private) voidrun()Methods inherited from class org.apache.fop.pdf.PDFEncryptionJCE.InitializationEngine
computeUValue, getEncryptionDictionaryPart
-
Field Details
-
padding
protected final byte[] paddingPadding for passwords.
-
-
Constructor Details
-
RevBefore5Engine
RevBefore5Engine(PDFEncryptionJCE.EncryptionSettings encryptionSettings)
-
-
Method Details
-
computeOValue
protected void computeOValue()Applies Algorithm 3.3 Page 79 of the PDF 1.4 Reference.- Specified by:
computeOValuein classPDFEncryptionJCE.InitializationEngine
-
createEncryptionKey
protected void createEncryptionKey()Applies Algorithm 3.2 Page 78 of the PDF 1.4 Reference.- Specified by:
createEncryptionKeyin classPDFEncryptionJCE.InitializationEngine
-
preparePassword
Adds padding to the password as directed in page 78 of the PDF 1.4 Reference.- Specified by:
preparePasswordin classPDFEncryptionJCE.InitializationEngine- Parameters:
password- the password- Returns:
- the password with additional padding if necessary
-
run
void run()- Overrides:
runin classPDFEncryptionJCE.InitializationEngine
-
computeOValueStep3
protected abstract byte[] computeOValueStep3(byte[] hash) -
computeOValueStep7
protected abstract byte[] computeOValueStep7(byte[] key, byte[] encryptionResult) -
createEncryptionKeyStep6
protected abstract byte[] createEncryptionKeyStep6(byte[] hash)
-