Class SignerInformation
- Namespace
- Org.BouncyCastle.Cms
- Assembly
- BouncyCastle.Cryptography.dll
public class SignerInformation
- Inheritance
-
SignerInformation
- Inherited Members
-
Constructors
protected SignerInformation(SignerInformation baseInfo)
Parameters
baseInfo SignerInformation
Fields
protected AlgorithmIdentifier digestAlgorithm
Field Value
- AlgorithmIdentifier
protected AlgorithmIdentifier encryptionAlgorithm
Field Value
- AlgorithmIdentifier
protected SignerInfo info
Field Value
- SignerInfo
protected readonly Asn1Set signedAttributeSet
Field Value
- Asn1Set
protected readonly Asn1Set unsignedAttributeSet
Field Value
- Asn1Set
Properties
ContentType
public DerObjectIdentifier ContentType { get; }
Property Value
- DerObjectIdentifier
[Obsolete("Use 'DigestAlgorithmID' instead")]
public string DigestAlgOid { get; }
Property Value
- string
[Obsolete("Use 'DigestAlgorithmID' instead")]
public Asn1Object DigestAlgParams { get; }
Property Value
- Asn1Object
public AlgorithmIdentifier DigestAlgorithmID { get; }
Property Value
- AlgorithmIdentifier
[Obsolete("Use 'SignatureAlgorithm' property instead")]
public string EncryptionAlgOid { get; }
Property Value
- string
[Obsolete("Use 'SignatureAlgorithm' property instead")]
public Asn1Object EncryptionAlgParams { get; }
Property Value
- Asn1Object
[Obsolete("Use 'SignatureAlgorithm' property instead")]
public AlgorithmIdentifier EncryptionAlgorithmID { get; }
Property Value
- AlgorithmIdentifier
public bool IsCounterSignature { get; }
Property Value
- bool
public AlgorithmIdentifier SignatureAlgorithm { get; }
Property Value
- AlgorithmIdentifier
public AttributeTable SignedAttributes { get; }
Property Value
- AttributeTable
public SignerID SignerID { get; }
Property Value
- SignerID
public SignerInfo SignerInfo { get; }
Property Value
- SignerInfo
public AttributeTable UnsignedAttributes { get; }
Property Value
- AttributeTable
public int Version { get; }
Property Value
- int
Methods
public static SignerInformation AddCounterSigners(SignerInformation signerInformation, SignerInformationStore counterSigners)
Parameters
signerInformation SignerInformation
counterSigners SignerInformationStore
Returns
- SignerInformation
GetContentDigest()
public byte[] GetContentDigest()
Returns
- byte[]
public SignerInformationStore GetCounterSignatures()
Returns
- SignerInformationStore
public virtual byte[] GetEncodedSignedAttributes()
Returns
- byte[]
public byte[] GetSignature()
Returns
- byte[]
public static SignerInformation ReplaceUnsignedAttributes(SignerInformation signerInformation, AttributeTable unsignedAttributes)
Parameters
signerInformation SignerInformation
unsignedAttributes AttributeTable
Returns
- SignerInformation
[Obsolete("Use 'SignerInfo' property instead")]
public SignerInfo ToSignerInfo()
Returns
- SignerInfo
public bool Verify(AsymmetricKeyParameter pubKey)
Parameters
pubKey AsymmetricKeyParameter
Returns
- bool
public bool Verify(X509Certificate cert)
Parameters
cert X509Certificate
Returns
- bool