Table of Contents

Class StandardHandlerUsingStandard128

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

Constructors

StandardHandlerUsingStandard128(PdfDictionary, byte[], byte[], bool)

public StandardHandlerUsingStandard128(PdfDictionary encryptionDictionary, byte[] password, byte[] documentId, bool encryptMetadata)

Parameters

encryptionDictionary PdfDictionary
password byte[]
documentId byte[]
encryptMetadata bool

StandardHandlerUsingStandard128(PdfDictionary, byte[], byte[], int, bool, bool, byte[])

public StandardHandlerUsingStandard128(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[]

Methods

CalculatePermissions(int)

protected override void CalculatePermissions(int permissions)

Parameters

permissions int

ComputeGlobalEncryptionKey(byte[], byte[], bool)

protected override void ComputeGlobalEncryptionKey(byte[] userPad, byte[] ownerKey, bool encryptMetadata)

Parameters

userPad byte[]
ownerKey byte[]
encryptMetadata bool

ComputeOwnerKey(byte[], byte[])

protected override byte[] ComputeOwnerKey(byte[] userPad, byte[] ownerPad)

Parameters

userPad byte[]
ownerPad byte[]

Returns

byte[]

ComputeUserKey()

protected override byte[] ComputeUserKey()

Returns

byte[]

IsValidPassword(byte[], byte[])

protected override bool IsValidPassword(byte[] uValue, byte[] userKey)

Parameters

uValue byte[]
userKey byte[]

Returns

bool

SetSpecificHandlerDicEntries(PdfDictionary, bool, bool)

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

Parameters

encryptionDictionary PdfDictionary
encryptMetadata bool
embeddedFilesOnly bool