Introduced `Pkcs11Options` for configuring PKCS#11 signing workflows, including properties for library path, token selection, and signing metadata. Added `PdfSignOptionsDto` to represent signing options and `PdfSignatureCheckResultDto` with related DTOs for signature validation. Defined `PdfSignatureCertificationLevel` enum for certification levels. Added `IPdfDigitalSignatureService` interface to support signing and validating PDF signatures. These changes enable robust and extensible handling of digital signatures.
15 lines
490 B
C#
15 lines
490 B
C#
using EnvelopeGenerator.Application.Common.Enums;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Dto;
|
|
|
|
public sealed record PdfSignOptionsDto
|
|
{
|
|
public string? Name { get; set; }
|
|
public string? Reason { get; set; }
|
|
public string? Location { get; set; }
|
|
public string? ContactInfo { get; set; }
|
|
public DateTimeOffset? SigningTime { get; set; }
|
|
public string? ApplicationName { get; set; }
|
|
public PdfSignatureCertificationLevel? CertificationLevel { get; set; }
|
|
}
|