Package org.apache.fop.pdf
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 Summary
Fields Modifier and Type Field Description private boolean
encryptMetadata
private byte[]
oeValue
private byte[]
ownerKeySalt
private byte[]
ownerValidationSalt
private byte[]
ueValue
private byte[]
userKeySalt
private byte[]
userValidationSalt
-
Fields inherited from class org.apache.fop.pdf.PDFEncryptionJCE.InitializationEngine
encryptionLengthInBytes, oValue, permissions, preparedOwnerPassword, preparedUserPassword, uValue
-
-
Constructor Summary
Constructors Constructor Description Rev5Engine(PDFEncryptionJCE.EncryptionSettings encryptionSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
computeOEValue()
Algorithm 3.9-2 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)protected void
computeOValue()
Algorithm 3.9-1 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)byte[]
computePermsValue(int permissions)
Algorithm 3.10 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)private void
computeUEValue()
Algorithm 3.8-2 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)protected void
computeUValue()
Algorithm 3.8-1 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)protected void
createEncryptionKey()
See Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3, page 20, paragraph 5.protected java.lang.String
getEncryptionDictionaryPart()
protected byte[]
preparePassword(java.lang.String password)
Algorithm 3.2a-1 (page 19, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)(package private) void
run()
-
-
-
Field Detail
-
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 Detail
-
Rev5Engine
Rev5Engine(PDFEncryptionJCE.EncryptionSettings encryptionSettings)
-
-
Method Detail
-
run
void run()
- Overrides:
run
in classPDFEncryptionJCE.InitializationEngine
-
getEncryptionDictionaryPart
protected java.lang.String getEncryptionDictionaryPart()
- Overrides:
getEncryptionDictionaryPart
in classPDFEncryptionJCE.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 classPDFEncryptionJCE.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 classPDFEncryptionJCE.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 classPDFEncryptionJCE.InitializationEngine
-
preparePassword
protected byte[] preparePassword(java.lang.String password)
Algorithm 3.2a-1 (page 19, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)- Specified by:
preparePassword
in classPDFEncryptionJCE.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)
-
-