Rename DefaultApplicationName to ApplicationName
Updated the `Pkcs11Options` class to rename the `DefaultApplicationName` property to `ApplicationName`, clarifying its role as a globally controlled value embedded in PDF signature metadata. Modified `PdfDigitalSignatureService` to source `ApplicationName` directly from `Pkcs11Options`, removing client-level overrides. Updated `PdfSignatureController` to reflect this change by removing the `ApplicationName` property from `SignOptions`. Updated `appsettings.json` and `README.md` to reflect the property name change. These changes enforce stricter configuration control, improving metadata consistency and security.
This commit is contained in:
@@ -19,7 +19,6 @@ public class PdfSignatureController(IPdfDigitalSignatureService signatureService
|
||||
public string? Location { get; set; }
|
||||
public string? ContactInfo { get; set; }
|
||||
public DateTimeOffset? SigningTime { get; set; }
|
||||
public string? ApplicationName { get; set; }
|
||||
}
|
||||
|
||||
public sealed class CheckPdfSignatureForm
|
||||
@@ -56,7 +55,6 @@ public class PdfSignatureController(IPdfDigitalSignatureService signatureService
|
||||
Location = request.Location,
|
||||
ContactInfo = request.ContactInfo,
|
||||
SigningTime = request.SigningTime,
|
||||
ApplicationName = request.ApplicationName,
|
||||
CertificationLevel = PdfSignatureCertificationLevel.FormFillingAndAnnotations
|
||||
};
|
||||
|
||||
@@ -106,7 +104,6 @@ public class PdfSignatureController(IPdfDigitalSignatureService signatureService
|
||||
Reason = "reason",
|
||||
Location = "location",
|
||||
ContactInfo = "test@example.com",
|
||||
ApplicationName = "signFLOW",
|
||||
CertificationLevel = PdfSignatureCertificationLevel.FormFillingAndAnnotations
|
||||
};
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
"PrivateKeyLabel": "company-sign-key-v1",
|
||||
"CertificateLabel": "company-sign-cert-v1",
|
||||
"DefaultReason": null,
|
||||
"DefaultApplicationName": "signFLOW",
|
||||
"ApplicationName": "signFLOW",
|
||||
"UseUtcSigningTime": true,
|
||||
"DefaultCertificationLevel": "NoCertification"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user