C# Class iTextSharp.text.pdf.PdfEncryption

Mostrar archivo Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Protected Properties

Property Type Description
publicKeyHandler PdfPublicKeySecurityHandler

Public Methods

Method 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

Method 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 method

public AddRecipient ( X509Certificate cert, int permission ) : void
cert Org.BouncyCastle.X509.X509Certificate
permission int
return void

CalculateStreamSize() public method

public CalculateStreamSize ( int n ) : int
n int
return int

ComputeUserPassword() public method

public ComputeUserPassword ( byte ownerPassword ) : byte[]
ownerPassword byte
return byte[]

CreateDocumentId() public static method

public static CreateDocumentId ( ) : byte[]
return byte[]

CreateInfoId() public static method

public static CreateInfoId ( byte id ) : PdfObject
id byte
return PdfObject

DecryptByteArray() public method

public DecryptByteArray ( byte b ) : byte[]
b byte
return byte[]

EncryptByteArray() public method

public EncryptByteArray ( byte b ) : byte[]
b byte
return byte[]

GetCryptoMode() public method

public GetCryptoMode ( ) : int
return int

GetDecryptor() public method

public GetDecryptor ( ) : StandardDecryption
return iTextSharp.text.pdf.crypto.StandardDecryption

GetEncryptionDictionary() public method

public GetEncryptionDictionary ( ) : PdfDictionary
return PdfDictionary

GetEncryptionStream() public method

public GetEncryptionStream ( Stream os ) : OutputStreamEncryption
os Stream
return OutputStreamEncryption

GetPermissions() public method

public GetPermissions ( ) : int
return int

IsEmbeddedFilesOnly() public method

public IsEmbeddedFilesOnly ( ) : bool
return bool

IsMetadataEncrypted() public method

public IsMetadataEncrypted ( ) : bool
return bool

PdfEncryption() public method

public PdfEncryption ( ) : System
return System

PdfEncryption() public method

public PdfEncryption ( PdfEncryption enc ) : System
enc PdfEncryption
return System

ReadKey() public method

public ReadKey ( PdfDictionary enc, byte password ) : bool
enc PdfDictionary
password byte
return bool

SetCryptoMode() public method

public SetCryptoMode ( int mode, int kl ) : void
mode int
kl int
return void

SetHashKey() public method

public SetHashKey ( int number, int generation ) : void
number int
generation int
return void

SetupAllKeys() public method

public SetupAllKeys ( byte userPassword, byte ownerPassword, int permissions ) : void
userPassword byte
ownerPassword byte
permissions int
return void

SetupByEncryptionKey() public method

public SetupByEncryptionKey ( byte key, int keylength ) : void
key byte
keylength int
return void

SetupByOwnerPassword() public method

public SetupByOwnerPassword ( byte documentID, byte ownerPassword, byte userKey, byte ownerKey, int permissions ) : void
documentID byte
ownerPassword byte
userKey byte
ownerKey byte
permissions int
return void

SetupByUserPassword() public method

public SetupByUserPassword ( byte documentID, byte userPassword, byte ownerKey, int permissions ) : void
documentID byte
userPassword byte
ownerKey byte
permissions int
return void

Property Details

publicKeyHandler protected_oe property

protected PdfPublicKeySecurityHandler,iTextSharp.text.pdf publicKeyHandler
return PdfPublicKeySecurityHandler