Skip to main content
Skip table of contents

PdfPKCS7

PdfPKCS7 Public class

Diagram

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

Members

Properties

Public properties
TypeNameMethods
ICollection<X509Crl>CRLsget
X509Certificate``[]Certificatesget
stringDigestAlgorithmOidget
stringDigestEncryptionAlgorithmOidget
boolIsTspget
stringLocationget, set
BasicOcspRespOcspget
stringReasonget, set
X509Certificate``[]SignCertificateChainget
DateTimeSignDateget, set
stringSignNameget, set
X509CertificateSigningCertificateget
intSigningInfoVersionget
DateTimeTimeStampDateget
TimeStampTokenTimeStampTokenget
intVersionget

Methods

Internal methods
ReturnsName
IDigestGetHashClass()
Public methods
ReturnsName
stringGetDigestAlgorithm()
byte``[]GetEncodedPKCS1()
byte``[]GetEncodedPKCS7(...)
stringGetEncryptionAlgorithm()
PdfNameGetFilterSubtype()
stringGetHashAlgorithm()
boolIsRevocationValid()
voidSetExternalDigest(byte``[] digest, byte``[] RSAdata, string digestEncryptionAlgorithm)
voidSetSignaturePolicy(...)
voidUpdate(byte``[] buf, int off, int len)
boolVerify()
boolVerifyTimestampImprint()
byte``[]getAuthenticatedAttributeBytes(byte``[] secondDigest, byte``[] ocsp, ICollection<byte``[]> crlBytes, CryptoStandard sigtype)

Details

Constructors

PdfPKCS7 [1/3]

Source code

public PdfPKCS7(ICipherParameters privKey, ICollection<X509Certificate> certChain, string hashAlgorithm, bool hasRSAdata)
Arguments
TypeNameDescription
ICipherParametersprivKey
ICollection<X509Certificate>certChain
stringhashAlgorithm
boolhasRSAdata
PdfPKCS7 [2/3]

Source code

public PdfPKCS7(byte[] contentsKey, byte[] certsKey)
Arguments
TypeNameDescription
byte``[]contentsKey
byte``[]certsKey
PdfPKCS7 [3/3]

Source code

public PdfPKCS7(byte[] contentsKey, PdfName filterSubtype)
Arguments
TypeNameDescription
byte``[]contentsKey
PdfNamefilterSubtype

Methods

GetHashClass

Source code

internal IDigest GetHashClass()
SetSignaturePolicy [1/2]

Source code

public virtual void SetSignaturePolicy(SignaturePolicyInfo signaturePolicy)
Arguments
TypeNameDescription
SignaturePolicyInfosignaturePolicy
SetSignaturePolicy [2/2]

Source code

public virtual void SetSignaturePolicy(SignaturePolicyIdentifier signaturePolicy)
Arguments
TypeNameDescription
SignaturePolicyIdentifiersignaturePolicy
GetHashAlgorithm

Source code

public virtual string GetHashAlgorithm()
GetDigestAlgorithm

Source code

public virtual string GetDigestAlgorithm()
SetExternalDigest

Source code

public virtual void SetExternalDigest(byte[] digest, byte[] RSAdata, string digestEncryptionAlgorithm)
Arguments
TypeNameDescription
byte``[]digest
byte``[]RSAdata
stringdigestEncryptionAlgorithm
Update

Source code

public virtual void Update(byte[] buf, int off, int len)
Arguments
TypeNameDescription
byte``[]buf
intoff
intlen
GetEncodedPKCS1

Source code

public virtual byte GetEncodedPKCS1()
GetEncodedPKCS7 [1/3]

Source code

public virtual byte GetEncodedPKCS7()
GetEncodedPKCS7 [2/3]

Source code

public virtual byte GetEncodedPKCS7(byte[] secondDigest)
Arguments
TypeNameDescription
byte``[]secondDigest
GetEncodedPKCS7 [3/3]

Source code

public virtual byte GetEncodedPKCS7(byte[] secondDigest, ITSAClient tsaClient, byte[] ocsp, ICollection<byte[]> crlBytes, CryptoStandard sigtype)
Arguments
TypeNameDescription
byte``[]secondDigest
ITSAClienttsaClient
byte``[]ocsp
ICollection<byte``[]>crlBytes
CryptoStandardsigtype
getAuthenticatedAttributeBytes

Source code

public virtual byte getAuthenticatedAttributeBytes(byte[] secondDigest, byte[] ocsp, ICollection<byte[]> crlBytes, CryptoStandard sigtype)
Arguments
TypeNameDescription
byte``[]secondDigest
byte``[]ocsp
ICollection<byte``[]>crlBytes
CryptoStandardsigtype
Verify

Source code

public virtual bool Verify()
VerifyTimestampImprint

Source code

public virtual bool VerifyTimestampImprint()
IsRevocationValid

Source code

public virtual bool IsRevocationValid()
GetFilterSubtype

Source code

public virtual PdfName GetFilterSubtype()
GetEncryptionAlgorithm

Source code

public virtual string GetEncryptionAlgorithm()

Properties

SignName
public virtual string SignName { get; set; }
Reason
public virtual string Reason { get; set; }
Location
public virtual string Location { get; set; }
SignDate
public virtual DateTime SignDate { get; set; }
Version
public virtual int Version { get; }
SigningInfoVersion
public virtual int SigningInfoVersion { get; }
DigestAlgorithmOid
public virtual string DigestAlgorithmOid { get; }
DigestEncryptionAlgorithmOid
public virtual string DigestEncryptionAlgorithmOid { get; }
Certificates
public virtual X509Certificate Certificates { get; }
SignCertificateChain
public virtual X509Certificate SignCertificateChain { get; }
SigningCertificate
public virtual X509Certificate SigningCertificate { get; }
CRLs
public virtual ICollection<X509Crl> CRLs { get; }
Ocsp
public virtual BasicOcspResp Ocsp { get; }
IsTsp
public virtual bool IsTsp { get; }
TimeStampToken
public virtual TimeStampToken TimeStampToken { get; }
TimeStampDate
public virtual DateTime TimeStampDate { get; }

Generated with ModularDoc

JavaScript errors detected

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

If this problem persists, please contact our support.