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
signedContentCmsTypedStreamsigBlockbyte[]
CmsSignedDataParser(CmsTypedStream, Stream)
public CmsSignedDataParser(CmsTypedStream signedContent, Stream sigData)
Parameters
signedContentCmsTypedStreamsigDataStream
CmsSignedDataParser(byte[])
public CmsSignedDataParser(byte[] sigBlock)
Parameters
sigBlockbyte[]
CmsSignedDataParser(Stream)
public CmsSignedDataParser(Stream sigData)
Parameters
sigDataStream
Properties
DigestOids
public ISet<string> DigestOids { get; }
Property Value
SignedContentType
Return the DerObjectIdentifier associated with the encapsulated
content info structure carried in the signed data.
public DerObjectIdentifier SignedContentType { get; }
Property Value
Version
public int Version { get; }
Property Value
Methods
GetAttributeCertificates()
public IStore<X509V2AttributeCertificate> GetAttributeCertificates()
Returns
GetCertificates()
public IStore<X509Certificate> GetCertificates()
Returns
GetCrls()
public IStore<X509Crl> GetCrls()
Returns
GetOtherRevInfos(DerObjectIdentifier)
public IStore<Asn1Encodable> GetOtherRevInfos(DerObjectIdentifier otherRevInfoFormat)
Parameters
otherRevInfoFormatDerObjectIdentifier
Returns
GetSignedContent()
public CmsTypedStream GetSignedContent()
Returns
GetSignerInfos()
public SignerInformationStore GetSignerInfos()
Returns
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
originalStreamx509CertsIStore<X509Certificate>x509CrlsIStore<X509Crl>x509AttrCertsIStore<X509V2AttributeCertificate>outStrStream
Returns
ReplaceSigners(Stream, SignerInformationStore, Stream)
public static Stream ReplaceSigners(Stream original, SignerInformationStore signerInformationStore, Stream outStr)
Parameters
originalStreamsignerInformationStoreSignerInformationStoreoutStrStream