Table of Contents

Class PubSecHandlerUsingAes128

Namespace
iText.Kernel.Crypto.Securityhandler
Assembly
itext.kernel.dll
public class PubSecHandlerUsingAes128 : PubKeySecurityHandler
Inheritance
PubSecHandlerUsingAes128
Derived
Inherited Members

Constructors

PubSecHandlerUsingAes128(PdfDictionary, IX509Certificate[], int[], bool, bool)

public PubSecHandlerUsingAes128(PdfDictionary encryptionDictionary, IX509Certificate[] certs, int[] permissions, bool encryptMetadata, bool embeddedFilesOnly)

Parameters

encryptionDictionary PdfDictionary
certs IX509Certificate[]
permissions int[]
encryptMetadata bool
embeddedFilesOnly bool

PubSecHandlerUsingAes128(PdfDictionary, IPrivateKey, IX509Certificate, bool)

public PubSecHandlerUsingAes128(PdfDictionary encryptionDictionary, IPrivateKey certificateKey, IX509Certificate certificate, bool encryptMetadata)

Parameters

encryptionDictionary PdfDictionary
certificateKey IPrivateKey
certificate IX509Certificate
encryptMetadata bool

Methods

GetDecryptor()

public override IDecryptor GetDecryptor()

Returns

IDecryptor

GetDigestAlgorithm()

protected override string GetDigestAlgorithm()

Returns

string

GetEncryptionStream(Stream)

public override OutputStreamEncryption GetEncryptionStream(Stream os)

Parameters

os Stream

Returns

OutputStreamEncryption

InitKey(byte[], int)

protected override void InitKey(byte[] globalKey, int keyLength)

Parameters

globalKey byte[]
keyLength int

SetHashKeyForNextObject(int, int)

public override void SetHashKeyForNextObject(int objNumber, int objGeneration)

Parameters

objNumber int
objGeneration int

SetPubSecSpecificHandlerDicEntries(PdfDictionary, bool, bool)

protected override void SetPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, bool encryptMetadata, bool embeddedFilesOnly)

Parameters

encryptionDictionary PdfDictionary
encryptMetadata bool
embeddedFilesOnly bool