SignedInfo SignedInfo SignedInfo SignedInfo Class

定义

包含有关用于 XML 签名的规范化算法和签名算法的信息。Contains information about the canonicalization algorithm and signature algorithm used for the XML signature.

public ref class SignedInfo : System::Collections::ICollection
public class SignedInfo : System.Collections.ICollection
type SignedInfo = class
    interface ICollection
    interface IEnumerable
Public Class SignedInfo
Implements ICollection
继承
SignedInfoSignedInfoSignedInfoSignedInfo
实现

注解

SignedInfo类表示<SignedInfo>XML 数字签名规范所定义的 XML 签名的元素。The SignedInfo class represents the <SignedInfo> element of an XML signature defined by the XML digital signature specification. <SignedInfo>元素,它是子元素的<Signature>元素,包含用于对签名进行签名和验证和参考资料描述了数字签名使用的算法的规范化方法。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.

大多数情况下,应使用SignedInfo类可从SignedInfo属性进行签名和验证 XML 数字签名。For most scenarios, you should use the SignedInfo class available from the SignedInfo property to sign and verify XML digital signatures.

有关详细信息<SignedInfo>元素,请参阅World Wide Web 联合会 (W3C) 规范For more information about the <SignedInfo> element, see the World Wide Web Consortium (W3C) specification.

构造函数

SignedInfo() SignedInfo() SignedInfo() SignedInfo()

初始化 SignedInfo 类的新实例。Initializes a new instance of the SignedInfo class.

属性

CanonicalizationMethod CanonicalizationMethod CanonicalizationMethod CanonicalizationMethod

获取或设置为当前 SignedInfo 对象签名前使用的规范化算法。Gets or sets the canonicalization algorithm that is used before signing for the current SignedInfo object.

CanonicalizationMethodObject CanonicalizationMethodObject CanonicalizationMethodObject CanonicalizationMethodObject

获取用于规范化的 Transform 对象。Gets a Transform object used for canonicalization.

Count Count Count Count

获取当前 SignedInfo 对象中的引用数目。Gets the number of references in the current SignedInfo object.

Id Id Id Id

获取或设置当前 SignedInfo 对象的 ID。Gets or sets the ID of the current SignedInfo object.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个值,指示集合是否为只读集合。Gets a value that indicates whether the collection is read-only.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示该集合是否是同步的。Gets a value that indicates whether the collection is synchronized.

References References References References

获取当前 Reference 对象的 SignedInfo 对象列表。Gets a list of the Reference objects of the current SignedInfo object.

SignatureLength SignatureLength SignatureLength SignatureLength

获取或设置当前 SignedInfo 对象的签名长度。Gets or sets the length of the signature for the current SignedInfo object.

SignatureMethod SignatureMethod SignatureMethod SignatureMethod

获取或设置用于当前 SignedInfo 对象的签名生成和验证的算法名称。Gets or sets the name of the algorithm used for signature generation and validation for the current SignedInfo object.

SyncRoot SyncRoot SyncRoot SyncRoot

获取用于同步的对象。Gets an object to use for synchronization.

方法

AddReference(Reference) AddReference(Reference) AddReference(Reference) AddReference(Reference)

Reference 对象添加到要摘录和签名的引用列表中。Adds a Reference object to the list of references to digest and sign.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

将此实例的元素复制到 Array 对象中(从数组中的特定索引处开始)。Copies the elements of this instance into an Array object, starting at a specified index in the array.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回遍历引用集合的枚举数。Returns an enumerator that iterates through the collection of references.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
GetXml() GetXml() GetXml() GetXml()

返回 SignedInfo 对象的 XML 表示形式。Returns the XML representation of the SignedInfo object.

LoadXml(XmlElement) LoadXml(XmlElement) LoadXml(XmlElement) LoadXml(XmlElement)

从 XML 元素加载 SignedInfo 状态。Loads a SignedInfo state from an XML element.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于