Class SecurityHandler
- Namespace
- iText.Kernel.Crypto.Securityhandler
- Assembly
- itext.kernel.dll
public abstract class SecurityHandler
- Inheritance
-
SecurityHandler
- Derived
- Inherited Members
Constructors
SecurityHandler()
protected SecurityHandler()
Fields
extra
Work area to prepare the object/generation bytes
protected byte[] extra
Field Value
- byte[]
md5
protected IDigest md5
Field Value
- IDigest
mkey
The global encryption key
protected byte[] mkey
Field Value
- byte[]
nextObjectKey
The encryption key for a particular object/generation.
protected byte[] nextObjectKey
Field Value
- byte[]
Remarks
The encryption key for a particular object/generation. It is recalculated with SetHashKeyForNextObject(int, int) for every object individually based in its object/generation.
nextObjectKeySize
The encryption key length for a particular object/generation It is recalculated with SetHashKeyForNextObject(int, int) for every object individually based in its object/generation.
protected int nextObjectKeySize
Field Value
Methods
GetDecryptor()
public abstract IDecryptor GetDecryptor()
Returns
GetEncryptionStream(Stream)
public abstract OutputStreamEncryption GetEncryptionStream(Stream os)
Parameters
os
Stream
Returns
SetHashKeyForNextObject(int, int)
Note: For most of the supported security handlers algorithm to calculate encryption key for particular object is the same.
public virtual void SetHashKeyForNextObject(int objNumber, int objGeneration)