Class UsbPkcs11HsmSigner
Inheritance
System.Object
UsbPkcs11HsmSigner
Implements
System.IDisposable
Assembly: IronPdf.dll
Syntax
public class UsbPkcs11HsmSigner : AHsmSigner, IHsmSigner, IDisposable
Constructors
UsbPkcs11HsmSigner(String, String, String, String, String, String)
Declaration
public UsbPkcs11HsmSigner(string libraryPath, string userPin, string tokenLabel, string internalName, string digestAlgorithm = "SHA256", string signingAlgorithm = "RSA")
Parameters
| Type |
Name |
Description |
| System.String |
libraryPath |
|
| System.String |
userPin |
|
| System.String |
tokenLabel |
|
| System.String |
internalName |
|
| System.String |
digestAlgorithm |
|
| System.String |
signingAlgorithm |
|
Methods
AttachSignature(Byte[], Byte[], Int32, Int32)
Declaration
public override 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 |
|
Overrides
DoDispose()
Declaration
protected override void DoDispose()
Overrides
GetCertificate()
Declaration
public override X509Certificate2 GetCertificate()
Returns
| Type |
Description |
| System.Security.Cryptography.X509Certificates.X509Certificate2 |
|
Overrides
GetDetachedSignature(Byte[])
Declaration
public override byte[] GetDetachedSignature(byte[] dataToSign)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
dataToSign |
|
Returns
| Type |
Description |
| System.Byte[] |
|
Overrides
Initialize()
Declaration
protected override void Initialize()
Overrides
Implements
System.IDisposable