EncryptedType Class
Represents the abstract base class from which the classes EncryptedData and EncryptedKey derive.
Assembly: System.Security (in System.Security.dll)
System.Security.Cryptography.Xml::EncryptedType
System.Security.Cryptography.Xml::EncryptedData
System.Security.Cryptography.Xml::EncryptedKey
| Name | Description | |
|---|---|---|
![]() | EncryptedType() | Initializes a new instance of the EncryptedType class. |
| Name | Description | |
|---|---|---|
![]() | CipherData | Gets or sets the CipherData value for an instance of an EncryptedType class. |
![]() | Encoding | Gets or sets the Encoding attribute of an EncryptedType instance in XML encryption. |
![]() | EncryptionMethod | Gets or sets the <EncryptionMethod> element for XML encryption. |
![]() | EncryptionProperties | Gets or sets the <EncryptionProperties> element in XML encryption. |
![]() | Id | Gets or sets the Id attribute of an EncryptedType instance in XML encryption. |
![]() | KeyInfo | Gets of sets the <KeyInfo> element in XML encryption. |
![]() | MimeType | Gets or sets the MimeType attribute of an EncryptedType instance in XML encryption. |
![]() | Type | Gets or sets the Type attribute of an EncryptedType instance in XML encryption. |
| Name | Description | |
|---|---|---|
![]() | AddProperty(EncryptionProperty^) | Adds an <EncryptionProperty> child element to the <EncryptedProperties> element in the current EncryptedType object in XML encryption. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | GetXml() | Returns the XML representation of the EncryptedType object. |
![]() | LoadXml(XmlElement^) | Loads XML information into the <EncryptedType> element in XML encryption. |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The EncryptedType class represents the abstract base class from which the classes EncryptedData and EncryptedKey derive. These two classes contain the actual encrypted data or key information in XML encryption. To comply with XML encryption standards, you should use these two derived classes.
For more information on XML encryption standards, see http://www.w3.org/TR/xmlenc-core/.
The following code example demonstrates how to encrypt and decrypt an XML element using the EncryptedData class that derives from the EncryptedType class.
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.


