Class SignOptions

Thông tin

Đại diện cho tùy chọn ký cho thành phần Documentize.PdfSecurity.

public sealed class SignOptions : OptionsWithInputAndOutput, IHaveInput

Inheritance

objectOptionsWithInputOptionsWithInputAndOutputSignOptions

Implements

Inherited Members

Constructors

SignOptions(Stream, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với luồng pfx và mật khẩu.

public SignOptions(Stream pfx, string password)

Parameters

  • pfx Stream: Luồng chứa tệp pfx.
  • password string: Mật khẩu của tệp pfx.

SignOptions(string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với tệp pfx và mật khẩu.

public SignOptions(string pfx, string password)

Parameters

  • pfx string: Đường dẫn tới tệp pfx.
  • password string: Mật khẩu của tệp pfx.

SignOptions(IData, IData, IData, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với dữ liệu đầu vào, đầu ra, dữ liệu pfx và mật khẩu.

public SignOptions(IData inputData, IData outputData, IData pfxData, string password)

Parameters

  • inputData IData: Dữ liệu đầu vào.
  • outputData IData: Dữ liệu đầu ra.
  • pfxData IData: Dữ liệu pfx.
  • password string: Mật khẩu của pfx.

SignOptions(string, string, string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với các tệp đầu vào, đầu ra, pfx và mật khẩu.

public SignOptions(string inputFile, string outputFile, string pfxFile, string pfxPassword)

Parameters

  • inputFile string: Đường dẫn tệp đầu vào.
  • outputFile string: Đường dẫn tệp đầu ra.
  • pfxFile string: Đường dẫn tới tệp pfx.
  • pfxPassword string: Mật khẩu của pfx.

SignOptions(Stream, Stream, Stream, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với các luồng đầu vào, đầu ra, pfx và mật khẩu.

public SignOptions(Stream inputStream, Stream outputStream, Stream pfxStream, string pfxPassword)

Parameters

  • inputStream Stream: Luồng tệp đầu vào.
  • outputStream Stream: Luồng tệp đầu ra.
  • pfxStream Stream: Luồng pfx.
  • pfxPassword string: Mật khẩu của pfx.

SignOptions(TimestampOptions)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với tùy chọn Timestamp. Bạn có thể thiết lập timestamp cho tài liệu như một chữ ký riêng.

public SignOptions(TimestampOptions timestampOptions)

Parameters

  • timestampOptions TimestampOptions: Timestamp được sử dụng để tạo chữ ký timestamp mà không cần cung cấp chứng chỉ.

Properties

Contact

Liên hệ của chữ ký.

public string Contact { get; set; }

Property Value

string

Input

Lấy hoặc đặt dữ liệu đầu vào.

public override IData Input { get; set; }

Property Value

IData

Location

Vị trí của chữ ký.

public string Location { get; set; }

Property Value

string

Name

Tên của trường chữ ký hiện có. Null để tạo trường mới.

public string Name { get; set; }

Property Value

string

Output

Lấy hoặc đặt dữ liệu đầu ra.

public override IData Output { get; set; }

Property Value

IData

PageNumber

Số trang mà chữ ký được đặt.

public int PageNumber { get; set; }

Property Value

int

Pfx

Luồng chứa dữ liệu PFX.

public Stream Pfx { get; set; }

Property Value

Stream

PfxPassword

Mật khẩu cho Documentize.SignOptions.Pfx.

public string PfxPassword { get; set; }

Property Value

string

Reason

Lý do của chữ ký.

public string Reason { get; set; }

Property Value

string

Rectangle

Hình chữ nhật của chữ ký.

public Rectangle Rectangle { get; set; }

Property Value

Rectangle

TimestampOptions

Tùy chọn Timestamp. Timestamp được sử dụng để tạo chữ ký timestamp mà không cần cung cấp chứng chỉ. Nếu thuộc tính này được đặt và có chứng chỉ được cung cấp cho hàm khởi tạo của lớp Documentize.SignOptions, chữ ký số sẽ được gắn timestamp nhúng. Nếu thuộc tính này được đặt nhưng không có chứng chỉ nào được cung cấp, timestamp sẽ được thêm như một chữ ký riêng.

public TimestampOptions TimestampOptions { get; set; }

Property Value

TimestampOptions

Visible

Khả năng hiển thị của chữ ký. Mặc định là true.

public bool Visible { get; set; }

Property Value

bool

Namespace: Documentize Assembly: Documentize.dll

 Tiếng Việt