C# Класс PdfRpt.FluentInterface.SignedFileBuilder

digital signature's info builder class.
Показать файл Открыть проект Примеры использования класса

Private Properties

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

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

Метод Описание
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.

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

SignedFileBuilder() публичный Метод

ctor.
public SignedFileBuilder ( PdfReport pdfReport ) : PdfRpt.Core.Contracts
pdfReport PdfReport
Результат PdfRpt.Core.Contracts

SigningInfo() публичный Метод

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
Результат void

VisibleSignature() публичный Метод

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.
Результат void

WithCertificateFile() публичный Метод

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
Результат void

WithTsaClient() публичный Метод

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
Результат void