Class PdfSigGenericPkcs
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
A signature dictionary representation for the standard filters.
public abstract class PdfSigGenericPkcs : PdfSignature
- Inheritance
-
PdfSigGenericPkcs
- Derived
- Inherited Members
Constructors
PdfSigGenericPkcs(PdfName, PdfName)
Creates a generic standard filter.
protected PdfSigGenericPkcs(PdfName filter, PdfName subFilter)
Parameters
Fields
HashAlgorithm
The hash algorith, for example "SHA1"
protected string HashAlgorithm
Field Value
Pkcs
The class instance that calculates the PKCS#1 and PKCS#7
protected PdfPkcs7 Pkcs
Field Value
name
The subject name in the signing certificate (the element "CN")
protected string name
Field Value
Properties
Name
Gets the subject name in the signing certificate (the element "CN")
public string Name { get; }
Property Value
- string
the subject name in the signing certificate (the element "CN")
Signer
Gets the class instance that does the actual signing.
public PdfPkcs7 Signer { get; }
Property Value
- PdfPkcs7
the class instance that does the actual signing
SignerContents
Gets the signature content. This can be a PKCS#1 or a PKCS#7. It corresponds to the /Contents key.
public byte[] SignerContents { get; }
Property Value
- byte[]
the signature content
Methods
SetExternalDigest(byte[], byte[], string)
Sets the digest/signature to an external calculated value. is also null . If the digest is not null then it may be "RSA" or "DSA"
public void SetExternalDigest(byte[] digest, byte[] rsAdata, string digestEncryptionAlgorithm)
Parameters
digest
byte[]the digest. This is the actual signature
rsAdata
byte[]the extra data that goes into the data tag in PKCS#7
digestEncryptionAlgorithm
stringthe encryption algorithm. It may must be null if the digest
SetSignInfo(ICipherParameters, X509Certificate[], object[])
Sets the crypto information to sign.
public void SetSignInfo(ICipherParameters privKey, X509Certificate[] certChain, object[] crlList)
Parameters
privKey
ICipherParametersthe private key
certChain
X509Certificate[]the certificate chain
crlList
object[]the certificate revocation list. It can be null