C# Class PdfRpt.FluentInterface.SignedFileBuilder

digital signature's info builder class.
Mostra file Open project: VahidN/PdfReport Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
SignedFileBuilder ( PdfReport pdfReport ) : PdfRpt.Core.Contracts

ctor.

SigningInfo ( string reason, string contact, string location ) : void

Sets the signing related info.

VisibleSignature ( string text, bool useLastPageToShowSignature, iTextSharp position, PdfRunDirection runDirection, int pageNumberToShowSignature = 1, string imagePath = null ) : void

Sets VisibleSignature's info. It can be null.

WithCertificateFile ( bool appendSignature, string pfxPassword, string pfxPath ) : void

Sets the CertificateFile's info.

WithTsaClient ( string url, string userName, string password ) : void

Timestamp Authority Client's info. It can be null.

Method Details

SignedFileBuilder() public method

ctor.
public SignedFileBuilder ( PdfReport pdfReport ) : PdfRpt.Core.Contracts
pdfReport PdfReport
return PdfRpt.Core.Contracts

SigningInfo() public method

Sets the signing related info.
public SigningInfo ( string reason, string contact, string location ) : void
reason string Sets the signing reason
contact string Sets the signing contact
location string Sets the signing location
return void

VisibleSignature() public method

Sets VisibleSignature's info. It can be null.
public VisibleSignature ( string text, bool useLastPageToShowSignature, iTextSharp position, PdfRunDirection runDirection, int pageNumberToShowSignature = 1, string imagePath = null ) : void
text string Sets the signature text identifying the signer.
useLastPageToShowSignature bool If it sets to true, value of the Page property will be ignored.
position iTextSharp Position and dimension of the field in the page.
runDirection PdfRunDirection Possible run direction values, left-to-right or right-to-left
pageNumberToShowSignature int The page to place the field. The fist page is 1.
imagePath string Signature's image. It can be null.
return void

WithCertificateFile() public method

Sets the CertificateFile's info.
public WithCertificateFile ( bool appendSignature, string pfxPassword, string pfxPath ) : void
appendSignature bool If sets to true the signature and all the other content will be added as a new revision thus not invalidating existing signatures. Set it to true if you don't want to lose the EncryptionOptions.
pfxPassword string Certificate file's password
pfxPath string Certificate file's path
return void

WithTsaClient() public method

Timestamp Authority Client's info. It can be null.
public WithTsaClient ( string url, string userName, string password ) : void
url string URL of the Time Stamp Authority
userName string TSA Username
password string TSA password
return void