C# Класс iTextSharp.text.pdf.PdfEncryption

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
publicKeyHandler PdfPublicKeySecurityHandler

Открытые методы

Метод Описание
AddRecipient ( X509Certificate cert, int permission ) : void
CalculateStreamSize ( int n ) : int
ComputeUserPassword ( byte ownerPassword ) : byte[]
CreateDocumentId ( ) : byte[]
CreateInfoId ( byte id ) : PdfObject
DecryptByteArray ( byte b ) : byte[]
EncryptByteArray ( byte b ) : byte[]
GetCryptoMode ( ) : int
GetDecryptor ( ) : StandardDecryption
GetEncryptionDictionary ( ) : PdfDictionary
GetEncryptionStream ( Stream os ) : OutputStreamEncryption
GetPermissions ( ) : int
IsEmbeddedFilesOnly ( ) : bool
IsMetadataEncrypted ( ) : bool
PdfEncryption ( ) : System
PdfEncryption ( PdfEncryption enc ) : System
ReadKey ( PdfDictionary enc, byte password ) : bool
SetCryptoMode ( int mode, int kl ) : void
SetHashKey ( int number, int generation ) : void
SetupAllKeys ( byte userPassword, byte ownerPassword, int permissions ) : void
SetupByEncryptionKey ( byte key, int keylength ) : void
SetupByOwnerPassword ( byte documentID, byte ownerPassword, byte userKey, byte ownerKey, int permissions ) : void
SetupByUserPassword ( byte documentID, byte userPassword, byte ownerKey, int permissions ) : void

Приватные методы

Метод Описание
CompareArray ( byte a, byte b, int len ) : bool
ComputeOwnerKey ( byte userPad, byte ownerPad ) : byte[]
PadPassword ( byte userPassword ) : byte[]
SetupByOwnerPad ( byte documentID, byte ownerPad, byte userKey, byte ownerKey, int permissions ) : void
SetupByUserPad ( byte documentID, byte userPad, byte ownerKey, int permissions ) : void
SetupGlobalEncryptionKey ( byte documentID, byte userPad, byte ownerKey, int permissions ) : void
SetupUserKey ( ) : void

Описание методов

AddRecipient() публичный метод

public AddRecipient ( X509Certificate cert, int permission ) : void
cert Org.BouncyCastle.X509.X509Certificate
permission int
Результат void

CalculateStreamSize() публичный метод

public CalculateStreamSize ( int n ) : int
n int
Результат int

ComputeUserPassword() публичный метод

public ComputeUserPassword ( byte ownerPassword ) : byte[]
ownerPassword byte
Результат byte[]

CreateDocumentId() публичный статический метод

public static CreateDocumentId ( ) : byte[]
Результат byte[]

CreateInfoId() публичный статический метод

public static CreateInfoId ( byte id ) : PdfObject
id byte
Результат PdfObject

DecryptByteArray() публичный метод

public DecryptByteArray ( byte b ) : byte[]
b byte
Результат byte[]

EncryptByteArray() публичный метод

public EncryptByteArray ( byte b ) : byte[]
b byte
Результат byte[]

GetCryptoMode() публичный метод

public GetCryptoMode ( ) : int
Результат int

GetDecryptor() публичный метод

public GetDecryptor ( ) : StandardDecryption
Результат iTextSharp.text.pdf.crypto.StandardDecryption

GetEncryptionDictionary() публичный метод

public GetEncryptionDictionary ( ) : PdfDictionary
Результат PdfDictionary

GetEncryptionStream() публичный метод

public GetEncryptionStream ( Stream os ) : OutputStreamEncryption
os Stream
Результат OutputStreamEncryption

GetPermissions() публичный метод

public GetPermissions ( ) : int
Результат int

IsEmbeddedFilesOnly() публичный метод

public IsEmbeddedFilesOnly ( ) : bool
Результат bool

IsMetadataEncrypted() публичный метод

public IsMetadataEncrypted ( ) : bool
Результат bool

PdfEncryption() публичный метод

public PdfEncryption ( ) : System
Результат System

PdfEncryption() публичный метод

public PdfEncryption ( PdfEncryption enc ) : System
enc PdfEncryption
Результат System

ReadKey() публичный метод

public ReadKey ( PdfDictionary enc, byte password ) : bool
enc PdfDictionary
password byte
Результат bool

SetCryptoMode() публичный метод

public SetCryptoMode ( int mode, int kl ) : void
mode int
kl int
Результат void

SetHashKey() публичный метод

public SetHashKey ( int number, int generation ) : void
number int
generation int
Результат void

SetupAllKeys() публичный метод

public SetupAllKeys ( byte userPassword, byte ownerPassword, int permissions ) : void
userPassword byte
ownerPassword byte
permissions int
Результат void

SetupByEncryptionKey() публичный метод

public SetupByEncryptionKey ( byte key, int keylength ) : void
key byte
keylength int
Результат void

SetupByOwnerPassword() публичный метод

public SetupByOwnerPassword ( byte documentID, byte ownerPassword, byte userKey, byte ownerKey, int permissions ) : void
documentID byte
ownerPassword byte
userKey byte
ownerKey byte
permissions int
Результат void

SetupByUserPassword() публичный метод

public SetupByUserPassword ( byte documentID, byte userPassword, byte ownerKey, int permissions ) : void
documentID byte
userPassword byte
ownerKey byte
permissions int
Результат void

Описание свойств

publicKeyHandler защищенное свойство

protected PdfPublicKeySecurityHandler,iTextSharp.text.pdf publicKeyHandler
Результат PdfPublicKeySecurityHandler