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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private byte[]
private byte[]
private byte[]
private byte[]
private byte[]
private byte[]
Fields inherited from class org.apache.fop.pdf.PDFEncryptionJCE.InitializationEngine
encryptionLengthInBytes, oValue, permissions, preparedOwnerPassword, preparedUserPassword, uValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Algorithm 3.9-2 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)protected void
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
Algorithm 3.8-2 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)protected void
Algorithm 3.8-1 (page 20, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)protected void
See Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3, page 20, paragraph 5.protected String
protected byte[]
preparePassword
(String password) Algorithm 3.2a-1 (page 19, Adobe Supplement to the ISO 32000, BaseVersion: 1.7, ExtensionLevel: 3)(package private) void
run()
-
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
-
Rev5Engine
Rev5Engine(PDFEncryptionJCE.EncryptionSettings encryptionSettings)
-
-
Method Details
-
run
void run()- Overrides:
run
in classPDFEncryptionJCE.InitializationEngine
-
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
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)
-