Table of Contents

Class CmsSignedDataParser

Namespace
Org.BouncyCastle.Cms
Assembly
BouncyCastle.Cryptography.dll
public class CmsSignedDataParser : CmsContentInfoParser, IDisposable
Inheritance
CmsSignedDataParser
Implements
Inherited Members

Constructors

CmsSignedDataParser(CmsTypedStream, byte[])

public CmsSignedDataParser(CmsTypedStream signedContent, byte[] sigBlock)

Parameters

signedContent CmsTypedStream
sigBlock byte[]

CmsSignedDataParser(CmsTypedStream, Stream)

public CmsSignedDataParser(CmsTypedStream signedContent, Stream sigData)

Parameters

signedContent CmsTypedStream
sigData Stream

CmsSignedDataParser(byte[])

public CmsSignedDataParser(byte[] sigBlock)

Parameters

sigBlock byte[]

CmsSignedDataParser(Stream)

public CmsSignedDataParser(Stream sigData)

Parameters

sigData Stream

Properties

DigestOids

public ISet<string> DigestOids { get; }

Property Value

ISet<string>

SignedContentType

Return the DerObjectIdentifier associated with the encapsulated content info structure carried in the signed data.

public DerObjectIdentifier SignedContentType { get; }

Property Value

DerObjectIdentifier

Version

public int Version { get; }

Property Value

int

Methods

GetAttributeCertificates()

public IStore<X509V2AttributeCertificate> GetAttributeCertificates()

Returns

IStore<X509V2AttributeCertificate>

GetCertificates()

public IStore<X509Certificate> GetCertificates()

Returns

IStore<X509Certificate>

GetCrls()

public IStore<X509Crl> GetCrls()

Returns

IStore<X509Crl>

GetOtherRevInfos(DerObjectIdentifier)

public IStore<Asn1Encodable> GetOtherRevInfos(DerObjectIdentifier otherRevInfoFormat)

Parameters

otherRevInfoFormat DerObjectIdentifier

Returns

IStore<Asn1Encodable>

GetSignedContent()

public CmsTypedStream GetSignedContent()

Returns

CmsTypedStream

GetSignerInfos()

public SignerInformationStore GetSignerInfos()

Returns

SignerInformationStore

ReplaceCertificatesAndCrls(Stream, IStore<X509Certificate>, IStore<X509Crl>, IStore<X509V2AttributeCertificate>, Stream)

public static Stream ReplaceCertificatesAndCrls(Stream original, IStore<X509Certificate> x509Certs, IStore<X509Crl> x509Crls, IStore<X509V2AttributeCertificate> x509AttrCerts, Stream outStr)

Parameters

original Stream
x509Certs IStore<X509Certificate>
x509Crls IStore<X509Crl>
x509AttrCerts IStore<X509V2AttributeCertificate>
outStr Stream

Returns

Stream

ReplaceSigners(Stream, SignerInformationStore, Stream)

public static Stream ReplaceSigners(Stream original, SignerInformationStore signerInformationStore, Stream outStr)

Parameters

original Stream
signerInformationStore SignerInformationStore
outStr Stream

Returns

Stream