SignedInfo Class

Definition

Contains information about the canonicalization algorithm and signature algorithm used for the XML signature.

C#
public class SignedInfo : System.Collections.ICollection
Inheritance
SignedInfo
Implements

Remarks

The SignedInfo class represents the <SignedInfo> element of an XML signature defined by the XML digital signature specification. The <SignedInfo> element, which is a subelement of the <Signature> element, contains the canonicalization method used for signing, the algorithm used for signing and validation, and references that describe a digital signature.

For most scenarios, you should use the SignedInfo class available from the SignedInfo property to sign and verify XML digital signatures.

For more information about the <SignedInfo> element, see the World Wide Web Consortium (W3C) specification.

Constructors

SignedInfo()

Initializes a new instance of the SignedInfo class.

Properties

CanonicalizationMethod

Gets or sets the canonicalization algorithm that is used before signing for the current SignedInfo object.

CanonicalizationMethodObject

Gets a Transform object used for canonicalization.

Count

Gets the number of references in the current SignedInfo object.

Id

Gets or sets the ID of the current SignedInfo object.

IsReadOnly

Gets a value that indicates whether the collection is read-only.

IsSynchronized

Gets a value that indicates whether the collection is synchronized.

References

Gets a list of the Reference objects of the current SignedInfo object.

SignatureLength

Gets or sets the length of the signature for the current SignedInfo object.

SignatureMethod

Gets or sets the name of the algorithm used for signature generation and validation for the current SignedInfo object.

SyncRoot

Gets an object to use for synchronization.

Methods

AddReference(Reference)

Adds a Reference object to the list of references to digest and sign.

CopyTo(Array, Int32)

Copies the elements of this instance into an Array object, starting at a specified index in the array.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through the collection of references.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetXml()

Returns the XML representation of the SignedInfo object.

LoadXml(XmlElement)

Loads a SignedInfo state from an XML element.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9