Class StandardHandlerUsingStandard40
- Namespace
- iText.Kernel.Crypto.Securityhandler
- Assembly
- itext.kernel.dll
public class StandardHandlerUsingStandard40 : StandardSecurityHandler
- Inheritance
-
StandardHandlerUsingStandard40
- Derived
-
- Inherited Members
-
Constructors
StandardHandlerUsingStandard40(PdfDictionary, byte[], byte[], bool)
public StandardHandlerUsingStandard40(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, bool encryptMetadata)
Parameters
encryptionDictionary
PdfDictionary
password
byte[]
documentId
byte[]
encryptMetadata
bool
StandardHandlerUsingStandard40(PdfDictionary, byte[], byte[], int, bool, bool, byte[])
public StandardHandlerUsingStandard40(PdfDictionary encryptionDictionary, byte[] userPassword, byte[] ownerPassword, int permissions, bool encryptMetadata, bool embeddedFilesOnly, byte[] documentId)
Parameters
encryptionDictionary
PdfDictionary
userPassword
byte[]
ownerPassword
byte[]
permissions
int
encryptMetadata
bool
embeddedFilesOnly
bool
documentId
byte[]
Fields
arcfour
protected ARCFOUREncryption arcfour
Field Value
- ARCFOUREncryption
documentId
protected byte[] documentId
Field Value
- byte[]
keyLength
Field Value
- int
metadataPad
protected static readonly byte[] metadataPad
Field Value
- byte[]
pad
protected static readonly byte[] pad
Field Value
- byte[]
Methods
CalculatePermissions(int)
protected virtual void CalculatePermissions(int permissions)
Parameters
permissions
int
ComputeGlobalEncryptionKey(byte[], byte[], bool)
protected virtual void ComputeGlobalEncryptionKey(byte[] userPad, byte[] ownerKey, bool encryptMetadata)
Parameters
userPad
byte[]
ownerKey
byte[]
encryptMetadata
bool
ComputeOwnerKey(byte[], byte[])
protected virtual byte[] ComputeOwnerKey(byte[] userPad, byte[] ownerPad)
Parameters
userPad
byte[]
ownerPad
byte[]
Returns
- byte[]
ComputeUserKey()
protected virtual byte[] ComputeUserKey()
Returns
- byte[]
ComputeUserPassword(byte[], PdfDictionary)
public virtual byte[] ComputeUserPassword(byte[] ownerPassword, PdfDictionary encryptionDictionary)
Parameters
ownerPassword
byte[]
encryptionDictionary
PdfDictionary
Returns
- byte[]
GetDecryptor()
public override IDecryptor GetDecryptor()
Returns
- IDecryptor
GetEncryptionStream(Stream)
public override OutputStreamEncryption GetEncryptionStream(Stream os)
Parameters
os
Stream
Returns
- OutputStreamEncryption
IsValidPassword(byte[], byte[])
protected virtual bool IsValidPassword(byte[] uValue, byte[] userKey)
Parameters
uValue
byte[]
userKey
byte[]
Returns
- bool
SetSpecificHandlerDicEntries(PdfDictionary, bool, bool)
protected virtual void SetSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, bool encryptMetadata, bool embeddedFilesOnly)
Parameters
encryptionDictionary
PdfDictionary
encryptMetadata
bool
embeddedFilesOnly
bool