Table of Contents

Class SignerInformation

Namespace
Org.BouncyCastle.Cms
Assembly
BouncyCastle.Cryptography.dll
public class SignerInformation
Inheritance
SignerInformation
Inherited Members

Constructors

SignerInformation(SignerInformation)

protected SignerInformation(SignerInformation baseInfo)

Parameters

baseInfo SignerInformation

Fields

digestAlgorithm

protected AlgorithmIdentifier digestAlgorithm

Field Value

AlgorithmIdentifier

encryptionAlgorithm

protected AlgorithmIdentifier encryptionAlgorithm

Field Value

AlgorithmIdentifier

info

protected SignerInfo info

Field Value

SignerInfo

signedAttributeSet

protected readonly Asn1Set signedAttributeSet

Field Value

Asn1Set

unsignedAttributeSet

protected readonly Asn1Set unsignedAttributeSet

Field Value

Asn1Set

Properties

ContentType

public DerObjectIdentifier ContentType { get; }

Property Value

DerObjectIdentifier

DigestAlgOid

[Obsolete("Use 'DigestAlgorithmID' instead")]
public string DigestAlgOid { get; }

Property Value

string

DigestAlgParams

[Obsolete("Use 'DigestAlgorithmID' instead")]
public Asn1Object DigestAlgParams { get; }

Property Value

Asn1Object

DigestAlgorithmID

public AlgorithmIdentifier DigestAlgorithmID { get; }

Property Value

AlgorithmIdentifier

EncryptionAlgOid

[Obsolete("Use 'SignatureAlgorithm' property instead")]
public string EncryptionAlgOid { get; }

Property Value

string

EncryptionAlgParams

[Obsolete("Use 'SignatureAlgorithm' property instead")]
public Asn1Object EncryptionAlgParams { get; }

Property Value

Asn1Object

EncryptionAlgorithmID

[Obsolete("Use 'SignatureAlgorithm' property instead")]
public AlgorithmIdentifier EncryptionAlgorithmID { get; }

Property Value

AlgorithmIdentifier

IsCounterSignature

public bool IsCounterSignature { get; }

Property Value

bool

SignatureAlgorithm

public AlgorithmIdentifier SignatureAlgorithm { get; }

Property Value

AlgorithmIdentifier

SignedAttributes

public AttributeTable SignedAttributes { get; }

Property Value

AttributeTable

SignerID

public SignerID SignerID { get; }

Property Value

SignerID

SignerInfo

public SignerInfo SignerInfo { get; }

Property Value

SignerInfo

UnsignedAttributes

public AttributeTable UnsignedAttributes { get; }

Property Value

AttributeTable

Version

public int Version { get; }

Property Value

int

Methods

AddCounterSigners(SignerInformation, SignerInformationStore)

public static SignerInformation AddCounterSigners(SignerInformation signerInformation, SignerInformationStore counterSigners)

Parameters

signerInformation SignerInformation
counterSigners SignerInformationStore

Returns

SignerInformation

GetContentDigest()

public byte[] GetContentDigest()

Returns

byte[]

GetCounterSignatures()

public SignerInformationStore GetCounterSignatures()

Returns

SignerInformationStore

GetEncodedSignedAttributes()

public virtual byte[] GetEncodedSignedAttributes()

Returns

byte[]

GetSignature()

public byte[] GetSignature()

Returns

byte[]

ReplaceUnsignedAttributes(SignerInformation, AttributeTable)

public static SignerInformation ReplaceUnsignedAttributes(SignerInformation signerInformation, AttributeTable unsignedAttributes)

Parameters

signerInformation SignerInformation
unsignedAttributes AttributeTable

Returns

SignerInformation

ToSignerInfo()

[Obsolete("Use 'SignerInfo' property instead")]
public SignerInfo ToSignerInfo()

Returns

SignerInfo

Verify(AsymmetricKeyParameter)

public bool Verify(AsymmetricKeyParameter pubKey)

Parameters

pubKey AsymmetricKeyParameter

Returns

bool

Verify(X509Certificate)

public bool Verify(X509Certificate cert)

Parameters

cert X509Certificate

Returns

bool