Skip to main content
Skip table of contents

X509Certificate2Signature

X509Certificate2Signature Public class

Description

Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf.security
  iTextSharp.text.pdf.security.X509Certificate2Signature[[X509Certificate2Signature]]
  iTextSharp.text.pdf.security.IExternalSignature[[IExternalSignature]]
  class iTextSharp.text.pdf.security.IExternalSignature interfaceStyle;
  end
iTextSharp.text.pdf.security.IExternalSignature --> iTextSharp.text.pdf.security.X509Certificate2Signature

Members

Methods

Public methods
ReturnsName
stringGetEncryptionAlgorithm()
stringGetHashAlgorithm()
byte``[]Sign(byte``[] message)

Details

Summary

Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.

Inheritance

Constructors

X509Certificate2Signature

Source code

public X509Certificate2Signature(X509Certificate2 certificate, string hashAlgorithm)
Arguments
TypeNameDescription
X509Certificate2certificateThe certificate with the private key
stringhashAlgorithmThe hash algorithm for the signature. As the Windows CAPI is used
to do the signature the only hash guaranteed to exist is SHA-1
Summary

Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.

Methods

Sign

Source code

public virtual byte Sign(byte[] message)
Arguments
TypeNameDescription
byte``[]message
GetHashAlgorithm

Source code

public virtual string GetHashAlgorithm()
GetEncryptionAlgorithm

Source code

public virtual string GetEncryptionAlgorithm()

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.