Table of Contents

Class StandardSecurityHandler

Namespace
iText.Kernel.Crypto.Securityhandler
Assembly
itext.kernel.dll
public abstract class StandardSecurityHandler : SecurityHandler
Inheritance
StandardSecurityHandler
Derived
Inherited Members

Constructors

StandardSecurityHandler()

protected StandardSecurityHandler()

Fields

PERMS_MASK_1_FOR_REVISION_2

protected const int PERMS_MASK_1_FOR_REVISION_2 = -64

Field Value

int

PERMS_MASK_1_FOR_REVISION_3_OR_GREATER

protected const int PERMS_MASK_1_FOR_REVISION_3_OR_GREATER = -3904

Field Value

int

PERMS_MASK_2

protected const int PERMS_MASK_2 = -4

Field Value

int

permissions

protected long permissions

Field Value

long

usedOwnerPassword

protected bool usedOwnerPassword

Field Value

bool

Methods

EqualsArray(byte[], byte[], int)

protected static bool EqualsArray(byte[] ar1, byte[] ar2, int size)

Parameters

ar1 byte[]
ar2 byte[]
size int

Returns

bool

GenerateOwnerPasswordIfNullOrEmpty(byte[])

protected virtual byte[] GenerateOwnerPasswordIfNullOrEmpty(byte[] ownerPassword)

Parameters

ownerPassword byte[]

Returns

byte[]

GetIsoBytes(PdfString)

Gets bytes of String-value without considering encoding.

protected virtual byte[] GetIsoBytes(PdfString @string)

Parameters

string PdfString

a PdfString to get bytes from it

Returns

byte[]

byte array

GetPermissions()

public virtual long GetPermissions()

Returns

long

IsUsedOwnerPassword()

public virtual bool IsUsedOwnerPassword()

Returns

bool

SetStandardHandlerDicEntries(PdfDictionary, byte[], byte[])

protected virtual void SetStandardHandlerDicEntries(PdfDictionary encryptionDictionary, byte[] userKey, byte[] ownerKey)

Parameters

encryptionDictionary PdfDictionary
userKey byte[]
ownerKey byte[]