DataReference Class

 

Represents the <DataReference> element used in XML encryption. This class cannot be inherited.

Namespace:   System.Security.Cryptography.Xml
Assembly:  System.Security (in System.Security.dll)

System::Object
  System.Security.Cryptography.Xml::EncryptedReference
    System.Security.Cryptography.Xml::DataReference

[HostProtectionAttribute(SecurityAction::LinkDemand, MayLeakOnAbort = true)]
public ref class DataReference sealed : EncryptedReference

NameDescription
System_CAPS_pubmethodDataReference()

Initializes a new instance of the DataReference class.

System_CAPS_pubmethodDataReference(String^)

Initializes a new instance of the DataReference class using the specified Uniform Resource Identifier (URI).

System_CAPS_pubmethodDataReference(String^, TransformChain^)

Initializes a new instance of the DataReference class using the specified Uniform Resource Identifier (URI) and a TransformChain object.

NameDescription
System_CAPS_protpropertyCacheValid

Gets a value that indicates whether the cache is valid.(Inherited from EncryptedReference.)

System_CAPS_pubpropertyTransformChain

Gets or sets the transform chain of an EncryptedReference object.(Inherited from EncryptedReference.)

System_CAPS_pubpropertyUri

Gets or sets the Uniform Resource Identifier (URI) of an EncryptedReference object.(Inherited from EncryptedReference.)

NameDescription
System_CAPS_pubmethodAddTransform(Transform^)

Adds a Transform object to the current transform chain of an EncryptedReference object.(Inherited from EncryptedReference.)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetXml()

Returns the XML representation of an EncryptedReference object.(Inherited from EncryptedReference.)

System_CAPS_pubmethodLoadXml(XmlElement^)

Loads an XML element into an EncryptedReference object.(Inherited from EncryptedReference.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The DataReference class represents the <DataReference> element that contains the location of encrypted data used with XML encryption.

<DataReference> elements are used to refer to <EncryptedData> elements that were encrypted using the key defined in the enclosing <EncryptedKey> element. Multiple <DataReference> elements can occur if multiple <EncryptedData> elements exist that are encrypted using the same key.

For more information about XML encryption standards, see http://www.w3.org/TR/xmlenc-core/.

The following code example demonstrates how to use the DataReference class to encrypt and decrypt multiple XML elements using different session keys.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: