Class CmsSignedData
- Namespace
- Org.BouncyCastle.Cms
- Assembly
- BouncyCastle.Cryptography.dll
public class CmsSignedData
- Inheritance
-
CmsSignedData
- Inherited Members
Constructors
CmsSignedData(ContentInfo)
public CmsSignedData(ContentInfo sigData)
Parameters
sigDataContentInfo
CmsSignedData(CmsProcessable, ContentInfo)
public CmsSignedData(CmsProcessable signedContent, ContentInfo sigData)
Parameters
signedContentCmsProcessablesigDataContentInfo
CmsSignedData(CmsProcessable, byte[])
public CmsSignedData(CmsProcessable signedContent, byte[] sigBlock)
Parameters
signedContentCmsProcessablesigBlockbyte[]
CmsSignedData(CmsProcessable, Stream)
public CmsSignedData(CmsProcessable signedContent, Stream sigData)
Parameters
signedContentCmsProcessablesigDataStream
CmsSignedData(byte[])
public CmsSignedData(byte[] sigBlock)
Parameters
sigBlockbyte[]
CmsSignedData(IDictionary<string, byte[]>, ContentInfo)
public CmsSignedData(IDictionary<string, byte[]> hashes, ContentInfo sigData)
Parameters
hashesIDictionary<string, byte[]>sigDataContentInfo
CmsSignedData(IDictionary<string, byte[]>, byte[])
public CmsSignedData(IDictionary<string, byte[]> hashes, byte[] sigBlock)
Parameters
hashesIDictionary<string, byte[]>sigBlockbyte[]
CmsSignedData(Stream)
public CmsSignedData(Stream sigData)
Parameters
sigDataStream
Properties
ContentInfo
public ContentInfo ContentInfo { get; }
Property Value
SignedContent
public CmsProcessable SignedContent { 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
SignedData
public SignedData SignedData { get; }
Property Value
Version
Return the version number for this object.
public int Version { get; }
Property Value
Methods
AddDigestAlgorithm(CmsSignedData, AlgorithmIdentifier)
public static CmsSignedData AddDigestAlgorithm(CmsSignedData signedData, AlgorithmIdentifier digestAlgorithm)
Parameters
signedDataCmsSignedDatadigestAlgorithmAlgorithmIdentifier
Returns
AddDigestAlgorithm(CmsSignedData, AlgorithmIdentifier, IDigestAlgorithmFinder)
public static CmsSignedData AddDigestAlgorithm(CmsSignedData signedData, AlgorithmIdentifier digestAlgorithm, IDigestAlgorithmFinder digestAlgorithmFinder)
Parameters
signedDataCmsSignedDatadigestAlgorithmAlgorithmIdentifierdigestAlgorithmFinderIDigestAlgorithmFinder
Returns
GetAttributeCertificates()
public IStore<X509V2AttributeCertificate> GetAttributeCertificates()
Returns
GetCertificates()
public IStore<X509Certificate> GetCertificates()
Returns
GetCrls()
public IStore<X509Crl> GetCrls()
Returns
GetDigestAlgorithmIDs()
[Obsolete("Use 'GetDigestAlgorithms' instead")]
public ISet<AlgorithmIdentifier> GetDigestAlgorithmIDs()
Returns
Remarks
Does not preserve the original order in SignedData.DigestAlgorithms.
GetDigestAlgorithms()
public IEnumerable<AlgorithmIdentifier> GetDigestAlgorithms()
Returns
GetEncoded()
public byte[] GetEncoded()
Returns
- byte[]
GetEncoded(string)
public byte[] GetEncoded(string encoding)
Parameters
encodingstring
Returns
- byte[]
GetOtherRevInfos(DerObjectIdentifier)
public IStore<Asn1Encodable> GetOtherRevInfos(DerObjectIdentifier otherRevInfoFormat)
Parameters
otherRevInfoFormatDerObjectIdentifier
Returns
GetSignerInfos()
public SignerInformationStore GetSignerInfos()
Returns
ReplaceCertificatesAndCrls(CmsSignedData, IStore<X509Certificate>, IStore<X509Crl>)
public static CmsSignedData ReplaceCertificatesAndCrls(CmsSignedData signedData, IStore<X509Certificate> x509Certs, IStore<X509Crl> x509Crls)
Parameters
signedDataCmsSignedDatax509CertsIStore<X509Certificate>x509CrlsIStore<X509Crl>
Returns
ReplaceCertificatesAndCrls(CmsSignedData, IStore<X509Certificate>, IStore<X509Crl>, IStore<X509V2AttributeCertificate>)
public static CmsSignedData ReplaceCertificatesAndCrls(CmsSignedData signedData, IStore<X509Certificate> x509Certs, IStore<X509Crl> x509Crls, IStore<X509V2AttributeCertificate> x509AttrCerts)
Parameters
signedDataCmsSignedDatax509CertsIStore<X509Certificate>x509CrlsIStore<X509Crl>x509AttrCertsIStore<X509V2AttributeCertificate>
Returns
ReplaceCertificatesAndRevocations(CmsSignedData, IStore<X509Certificate>, IStore<X509Crl>, IStore<X509V2AttributeCertificate>, IStore<OtherRevocationInfoFormat>)
public static CmsSignedData ReplaceCertificatesAndRevocations(CmsSignedData signedData, IStore<X509Certificate> x509Certs, IStore<X509Crl> x509Crls, IStore<X509V2AttributeCertificate> x509AttrCerts, IStore<OtherRevocationInfoFormat> otherRevocationInfos)
Parameters
signedDataCmsSignedDatax509CertsIStore<X509Certificate>x509CrlsIStore<X509Crl>x509AttrCertsIStore<X509V2AttributeCertificate>otherRevocationInfosIStore<OtherRevocationInfoFormat>
Returns
ReplaceSigners(CmsSignedData, SignerInformationStore)
public static CmsSignedData ReplaceSigners(CmsSignedData signedData, SignerInformationStore signerInformationStore)
Parameters
signedDataCmsSignedDatasignerInformationStoreSignerInformationStore
Returns
ReplaceSigners(CmsSignedData, SignerInformationStore, IDigestAlgorithmFinder)
public static CmsSignedData ReplaceSigners(CmsSignedData signedData, SignerInformationStore signerInformationStore, IDigestAlgorithmFinder digestAlgorithmFinder)
Parameters
signedDataCmsSignedDatasignerInformationStoreSignerInformationStoredigestAlgorithmFinderIDigestAlgorithmFinder