C# Class iTextSharp.text.pdf.PdfEncryption

Afficher le fichier Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Protected Properties

Свойство Type Description
publicKeyHandler PdfPublicKeySecurityHandler

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddRecipient() public méthode

public AddRecipient ( X509Certificate cert, int permission ) : void
cert Org.BouncyCastle.X509.X509Certificate
permission int
Résultat void

CalculateStreamSize() public méthode

public CalculateStreamSize ( int n ) : int
n int
Résultat int

ComputeUserPassword() public méthode

public ComputeUserPassword ( byte ownerPassword ) : byte[]
ownerPassword byte
Résultat byte[]

CreateDocumentId() public static méthode

public static CreateDocumentId ( ) : byte[]
Résultat byte[]

CreateInfoId() public static méthode

public static CreateInfoId ( byte id ) : PdfObject
id byte
Résultat PdfObject

DecryptByteArray() public méthode

public DecryptByteArray ( byte b ) : byte[]
b byte
Résultat byte[]

EncryptByteArray() public méthode

public EncryptByteArray ( byte b ) : byte[]
b byte
Résultat byte[]

GetCryptoMode() public méthode

public GetCryptoMode ( ) : int
Résultat int

GetDecryptor() public méthode

public GetDecryptor ( ) : StandardDecryption
Résultat iTextSharp.text.pdf.crypto.StandardDecryption

GetEncryptionDictionary() public méthode

public GetEncryptionDictionary ( ) : PdfDictionary
Résultat PdfDictionary

GetEncryptionStream() public méthode

public GetEncryptionStream ( Stream os ) : OutputStreamEncryption
os Stream
Résultat OutputStreamEncryption

GetPermissions() public méthode

public GetPermissions ( ) : int
Résultat int

IsEmbeddedFilesOnly() public méthode

public IsEmbeddedFilesOnly ( ) : bool
Résultat bool

IsMetadataEncrypted() public méthode

public IsMetadataEncrypted ( ) : bool
Résultat bool

PdfEncryption() public méthode

public PdfEncryption ( ) : System
Résultat System

PdfEncryption() public méthode

public PdfEncryption ( PdfEncryption enc ) : System
enc PdfEncryption
Résultat System

ReadKey() public méthode

public ReadKey ( PdfDictionary enc, byte password ) : bool
enc PdfDictionary
password byte
Résultat bool

SetCryptoMode() public méthode

public SetCryptoMode ( int mode, int kl ) : void
mode int
kl int
Résultat void

SetHashKey() public méthode

public SetHashKey ( int number, int generation ) : void
number int
generation int
Résultat void

SetupAllKeys() public méthode

public SetupAllKeys ( byte userPassword, byte ownerPassword, int permissions ) : void
userPassword byte
ownerPassword byte
permissions int
Résultat void

SetupByEncryptionKey() public méthode

public SetupByEncryptionKey ( byte key, int keylength ) : void
key byte
keylength int
Résultat void

SetupByOwnerPassword() public méthode

public SetupByOwnerPassword ( byte documentID, byte ownerPassword, byte userKey, byte ownerKey, int permissions ) : void
documentID byte
ownerPassword byte
userKey byte
ownerKey byte
permissions int
Résultat void

SetupByUserPassword() public méthode

public SetupByUserPassword ( byte documentID, byte userPassword, byte ownerKey, int permissions ) : void
documentID byte
userPassword byte
ownerKey byte
permissions int
Résultat void

Property Details

publicKeyHandler protected_oe property

protected PdfPublicKeySecurityHandler,iTextSharp.text.pdf publicKeyHandler
Résultat PdfPublicKeySecurityHandler