Transform 类

定义

表示可用在 XML 数字签名中的所有 <Transform> 元素从中派生的抽象基类。Represents the abstract base class from which all <Transform> elements that can be used in an XML digital signature derive.

public ref class Transform abstract
public abstract class Transform
type Transform = class
Public MustInherit Class Transform
继承
Transform
派生

注解

执行 XML 签名和验证时, <Transform> 元素描述签名者如何转换已签名的数据对象。When performing XML signing and verification, the <Transform> element describes how the signer transformed the data object that was signed. 然后,文档的验证程序使用该 <Transform> 元素以相同的方式转换已签名的数据。The verifier of a document then uses the <Transform> element to transform the signed data in the same manner. 如果验证程序无法以相同的方式转换已签名的数据,则无法对文档进行验证。If the verifier cannot transform the signed data in the same manner, the document cannot be verified.

Transform如果需要将一个或多个转换对象添加到已加密的 xml 文档或已签名的 xml 文档,请使用从类派生的类。Use a class that derives from the Transform class whenever you need to add one or more transform objects to an encrypted XML document or to a signed XML document.

有关元素的详细信息 <Transform> ,请参阅 W3C 网站上提供的 XMLDSIG 规范XML 加密规范For more information about the <Transform> element, see the XMLDSIG specification or the XML encryption specification, which are available on the W3C website.

构造函数

Transform()

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

属性

Algorithm

获取或设置用于标识当前转换所执行的算法的统一资源标识符 (URI)。Gets or sets the Uniform Resource Identifier (URI) that identifies the algorithm performed by the current transform.

Context

获取或设置一个 XmlElement 对象,该对象表示当前 Transform 对象运行的文档上下文。Gets or sets an XmlElement object that represents the document context under which the current Transform object is running.

InputTypes

当在派生类中重写时,获取一个类型数组,这些类型是当前 LoadInput(Object) 对象的 Transform 方法的有效输入。When overridden in a derived class, gets an array of types that are valid inputs to the LoadInput(Object) method of the current Transform object.

OutputTypes

当在派生类中重写时,获取一个类型数组,这些类型是当前 GetOutput() 对象的 Transform 方法的可能输出。When overridden in a derived class, gets an array of types that are possible outputs from the GetOutput() methods of the current Transform object.

PropagatedNamespaces

获取或设置一个 Hashtable 对象,该对象包含传播到签名中的命名空间。Gets or sets a Hashtable object that contains the namespaces that are propagated into the signature.

Resolver

设置当前的 XmlResolver 对象。Sets the current XmlResolver object.

方法

Equals(Object)

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

(继承自 Object)
GetDigestedOutput(HashAlgorithm)

当在派生类中重写时,返回与 Transform 对象关联的摘要。When overridden in a derived class, returns the digest associated with a Transform object.

GetHashCode()

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

(继承自 Object)
GetInnerXml()

当在派生类中重写时,返回 Transform 对象的参数的 XML 表示形式,适合以 XMLDSIG<Transform> 元素的子元素的形式包含这些参数。When overridden in a derived class, returns an XML representation of the parameters of the Transform object that are suitable to be included as subelements of an XMLDSIG <Transform> element.

GetOutput()

当在派生类中重写时,返回当前 Transform 对象的输出。When overridden in a derived class, returns the output of the current Transform object.

GetOutput(Type)

当在派生类中重写时,返回指定类型的当前 Transform 对象的输出。When overridden in a derived class, returns the output of the current Transform object of the specified type.

GetType()

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

(继承自 Object)
GetXml()

返回当前 Transform 对象的 XML 表示形式。Returns the XML representation of the current Transform object.

LoadInnerXml(XmlNodeList)

当在派生类中重写时,将指定的 XmlNodeList 对象分析为 <Transform> 元素的特定于转换的内容,并配置当前 Transform 对象的内部状态以匹配 <Transform> 元素。When overridden in a derived class, parses the specified XmlNodeList object as transform-specific content of a <Transform> element and configures the internal state of the current Transform object to match the <Transform> element.

LoadInput(Object)

在派生类中重写时,将指定的输入加载到当前 Transform 对象中。When overridden in a derived class, loads the specified input into the current Transform object.

MemberwiseClone()

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

(继承自 Object)
ToString()

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

(继承自 Object)

适用于