Reference.DigestMethod 属性

定义

获取或设置当前 Reference 的摘要方法统一资源标识符 (URI)。

public:
 property System::String ^ DigestMethod { System::String ^ get(); void set(System::String ^ value); };
public string DigestMethod { get; set; }
member this.DigestMethod : string with get, set
Public Property DigestMethod As String

属性值

String

当前 Reference 的摘要方法 URI。 默认值为 http://www.w3.org/2001/04/xmlenc#sha256.

注解

DigestMethod 属性使用 URI 字符串来表示 <DigestMethod> XML 数字签名的元素。

摘要方法是用于对 . 进行哈希运算的 Reference算法。 默认算法为 SHA256.

由于 SHA1 出现冲突问题,Microsoft 建议使用基于 SHA256 或更好的安全模型。 有关 XML 数字签名的详细信息,请参阅 W3C 规范

适用于