EncryptionProperty Class

 

Represents the <EncryptionProperty> 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::EncryptionProperty

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

NameDescription
System_CAPS_pubmethodEncryptionProperty()

Initializes a new instance of the EncryptionProperty class.

System_CAPS_pubmethodEncryptionProperty(XmlElement^)

Initializes a new instance of the EncryptionProperty class using an XmlElement object.

NameDescription
System_CAPS_pubpropertyId

Gets the ID of the current EncryptionProperty object.

System_CAPS_pubpropertyPropertyElement

Gets or sets an XmlElement object that represents an EncryptionProperty object.

System_CAPS_pubpropertyTarget

Gets the target of the EncryptionProperty object.

NameDescription
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 an XmlElement object that encapsulates an instance of the EncryptionProperty class.

System_CAPS_pubmethodLoadXml(XmlElement^)

Parses the input XmlElement and configures the internal state of the EncryptionProperty object to match.

System_CAPS_pubmethodToString()

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

The EncryptionProperty class encapsulates the <EncryptionProperty> element defined by the World Wide Web Consortium XML Encryption specification located at http://www.w3.org/TR/xmlenc-core/.

Use the EncryptionProperty class to provide additional encryption information related to the EncryptedData and EncryptedKey elements. For example, use this class to specify a time stamp.

The following code example encrypts and decrypts an XML document. This code example creates an EncryptionProperty object that contains custom information about the EncryptedKey element, and adds the EncryptionProperty object to the EncryptionPropertyCollection collection of the EncryptedXml class. Finally, this code example displays information about the EncryptionProperty object and the EncryptionPropertyCollection collection.

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: