Interface ISignatureProvider
Defines a contract for custom digital signature providers.
Namespace: Syncfusion.Maui.PdfViewer
Assembly: Syncfusion.Maui.PdfViewer.dll
Syntax
public interface ISignatureProvider
Remarks
Implement this interface to integrate cloud signing services, HSM devices, enterprise PKI infrastructure, or custom certificate management solutions.
Properties
Certificates
Gets the public certificate chain used to build the CMS/PKCS#7 signature structure.
Declaration
IReadOnlyList<X509Certificate2> Certificates { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.IReadOnlyList<System.Security.Cryptography.X509Certificates.X509Certificate2> |
Remarks
The returned certificates are embedded in the generated signature and are used during signature validation.
Methods
SignHashAsync(Byte[], CancellationToken)
Digitally signs the provided data and returns the generated signature bytes.
Declaration
Task<byte[]> SignHashAsync(byte[] data, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | data | |
| System.Threading.CancellationToken | token |
Returns
| Type |
|---|
| System.Threading.Tasks.Task<System.Byte[]> |
Remarks
Implement this method to perform signing using a custom signing service, hardware security module (HSM), smart card, USB token, or enterprise signing infrastructure.