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:
2026-10-14 14:34:59 +02:00
parent 7a36316b7e
commit 4f8fa9afd8
5 changed files with 6 additions and 8 deletions

View File

@@ -81,9 +81,10 @@ public sealed class Pkcs11Options
public string? DefaultReason { get; set; }
/// <summary>
/// Optional global default application name used when request-level options do not specify a value.
/// Application name embedded into PDF signature metadata.
/// This value is controlled via app settings and is not client-overridable.
/// </summary>
public string? DefaultApplicationName { get; set; }
public string? ApplicationName { get; set; }
/// <summary>
/// Controls how fallback signing time is created when request-level options do not specify a value.