Class StandardHandlerUsingStandard128
java.lang.Object
com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
com.itextpdf.kernel.crypto.securityhandler.StandardSecurityHandler
com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard40
com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard128
- Direct Known Subclasses:
-
StandardHandlerUsingAes128
-
Field Summary
Fields inherited from class com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard40
arcfour, documentId, keyLength, metadataPad, pad
Fields inherited from class com.itextpdf.kernel.crypto.securityhandler.StandardSecurityHandler
permissions, PERMS_MASK_1_FOR_REVISION_2, PERMS_MASK_1_FOR_REVISION_3_OR_GREATER, PERMS_MASK_2, usedOwnerPassword
Fields inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
extra, md5, mkey, nextObjectKey, nextObjectKeySize
-
Constructor Summary
ConstructorDescriptionStandardHandlerUsingStandard128
(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, boolean encryptMetadata) StandardHandlerUsingStandard128
(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly, byte[] documentId) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
calculatePermissions
(int permissions) protected void
computeGlobalEncryptionKey
(byte[] userPad, byte[] ownerKey, boolean encryptMetadata) protected byte[]
computeOwnerKey
(byte[] userPad, byte[] ownerPad) protected byte[]
protected boolean
isValidPassword
(byte[] uValue, byte[] userKey) protected void
setSpecificHandlerDicEntries
(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard40
computeUserPassword, getDecryptor, getEncryptionStream
Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.StandardSecurityHandler
equalsArray, generateOwnerPasswordIfNullOrEmpty, getIsoBytes, getPermissions, isUsedOwnerPassword, setPermissions, setStandardHandlerDicEntries
Methods inherited from class com.itextpdf.kernel.crypto.securityhandler.SecurityHandler
getMkey, getNextObjectKey, setHashKeyForNextObject
-
Constructor Details
-
StandardHandlerUsingStandard128
public StandardHandlerUsingStandard128(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, boolean encryptMetadata, boolean embeddedFilesOnly, byte[] documentId) -
StandardHandlerUsingStandard128
public StandardHandlerUsingStandard128(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, boolean encryptMetadata)
-
-
Method Details
-
calculatePermissions
protected void calculatePermissions(int permissions) - Overrides:
-
calculatePermissions
in classStandardHandlerUsingStandard40
-
computeOwnerKey
protected byte[] computeOwnerKey(byte[] userPad, byte[] ownerPad) - Overrides:
-
computeOwnerKey
in classStandardHandlerUsingStandard40
-
computeGlobalEncryptionKey
protected void computeGlobalEncryptionKey(byte[] userPad, byte[] ownerKey, boolean encryptMetadata) - Overrides:
-
computeGlobalEncryptionKey
in classStandardHandlerUsingStandard40
-
computeUserKey
protected byte[] computeUserKey()- Overrides:
-
computeUserKey
in classStandardHandlerUsingStandard40
-
setSpecificHandlerDicEntries
protected void setSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) - Overrides:
-
setSpecificHandlerDicEntries
in classStandardHandlerUsingStandard40
-
isValidPassword
protected boolean isValidPassword(byte[] uValue, byte[] userKey) - Overrides:
-
isValidPassword
in classStandardHandlerUsingStandard40
-