Interface IHsmSigner
Assembly: IronPdf.dll
Syntax
public interface IHsmSigner
Properties
Certificate
Declaration
< 11d 4 c772 - 3579 - 4f 93 - ac46 - b452e4461737 > X509Certificate Certificate { get; }
Property Value
Filter
Declaration
Property Value
| Type |
Description |
| System.String |
|
Initialized
Declaration
bool Initialized { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
InternalName
Declaration
string InternalName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
LibraryPath
Declaration
string LibraryPath { get; set; }
Property Value
| Type |
Description |
| System.String |
|
SignPlaceholderLength
Declaration
int SignPlaceholderLength { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
SubFilter
Declaration
string SubFilter { get; }
Property Value
| Type |
Description |
| System.String |
|
TimestampHashAlgorithm
Hash algorithm the TSA is asked to use when time-stamping the signature. Ignored when
TimeStampUrl is not set. Defaults to SHA256.
SHA-1 imprints are deprecated for RFC 3161 and rejected by many production TSAs, so SHA-256 is
the default here even though the certificate-based path historically defaults to SHA-1.
Declaration
TimestampHashAlgorithms TimestampHashAlgorithm { get; set; }
Property Value
TimeStampUrl
Optional RFC 3161 Time Stamp Authority (TSA) URL. When set, the signature produced by
GetDetachedSignature(Byte[]) embeds a trusted timestamp token as an unsigned
id-aa-signatureTimeStampToken attribute. When null or empty, no timestamp is added
and signing behaviour is unchanged. Named to match PdfSignature.TimeStampUrl on the
certificate-based signing path.
Declaration
string TimeStampUrl { get; set; }
Property Value
| Type |
Description |
| System.String |
|
TokenLabel
Declaration
string TokenLabel { get; set; }
Property Value
| Type |
Description |
| System.String |
|
UserPin
Declaration
string UserPin { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
AttachSignature(Byte[], Byte[], Int32, Int32)
Declaration
bool AttachSignature(byte[] pdfBytes, byte[] dataToSign, int signEndInBytes, int signStartInBytes)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
pdfBytes |
|
| System.Byte[] |
dataToSign |
|
| System.Int32 |
signEndInBytes |
|
| System.Int32 |
signStartInBytes |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetCertificate()
Declaration
X509Certificate2 GetCertificate()
Returns
| Type |
Description |
| System.Security.Cryptography.X509Certificates.X509Certificate2 |
|
GetDetachedSignature(Byte[])
Declaration
byte[] GetDetachedSignature(byte[] dataToSign)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
dataToSign |
|
Returns
| Type |
Description |
| System.Byte[] |
|