- Services/PdfRedactText.cs: strip text whose origin falls inside a CoverAnnotation from the page content stream at save time, hooked into PdfBurn.DrawAnnotationsIntoDoc. Fixes edited values staying recoverable by text extraction. - Themes/MMD.xaml replaces all thirteen themes; picker and accent strip removed; no dark mode. - Rename KillerPDF -> MMD PDF across code, resources, packaging and locale strings; new icon. - Remove the upstream author credit and the in-app install button.
22 lines
866 B
C#
22 lines
866 B
C#
using System.Security.Cryptography.X509Certificates;
|
|
|
|
namespace MmdPdf.Services.Signing
|
|
{
|
|
/// <summary>
|
|
/// A source of a signing certificate (with its private key). Kept as an interface so the only
|
|
/// Windows-only piece is the certificate-store provider; .pfx files (and, later, OS keychains)
|
|
/// keep the rest of the signing module portable for the planned Linux/Mac port.
|
|
/// </summary>
|
|
internal interface ICertificateProvider
|
|
{
|
|
/// <summary>Human-readable label for the UI (file name, or the cert's subject).</summary>
|
|
string DisplayName { get; }
|
|
|
|
/// <summary>
|
|
/// Returns the certificate (must have a usable private key). Throws on failure - a wrong
|
|
/// .pfx password, a missing private key, an unreadable file, etc.
|
|
/// </summary>
|
|
X509Certificate2 GetCertificate();
|
|
}
|
|
}
|