Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Security.​Cryptography.​Xml.​EncryptedKey

Assembly: System.Security.Cryptography.Xml

Inheritance: object → EncryptedType → EncryptedKey

Represents the <see langword="&lt;EncryptedKey&gt;" /> element in XML encryption. This class cannot be inherited.

Properties

public string
CarriedKeyName
Gets or sets the optional <see langword="&lt;CarriedKeyName&gt;" /> element in XML encryption.
public string
Recipient
Gets or sets the optional <see langword="Recipient" /> attribute in XML encryption.
public ReferenceList
ReferenceList
Gets or sets the <see langword="&lt;ReferenceList&gt;" /> element in XML encryption.
public CipherData
CipherData
Gets or sets the <see cref="T:System.Security.Cryptography.Xml.CipherData" /> value for an instance of an <see cref="T:System.Security.Cryptography.Xml.EncryptedType" /> class.
public string
Encoding
Gets or sets the <see langword="Encoding" /> attribute of an <see cref="T:System.Security.Cryptography.Xml.EncryptedType" /> instance in XML encryption.
EncryptionMethod
Gets or sets the <see langword="&lt;EncryptionMethod&gt;" /> element for XML encryption.
EncryptionProperties
Gets or sets the <see langword="&lt;EncryptionProperties&gt;" /> element in XML encryption.
public string
Id
Gets or sets the <see langword="Id" /> attribute of an <see cref="T:System.Security.Cryptography.Xml.EncryptedType" /> instance in XML encryption.
public KeyInfo
KeyInfo
Gets of sets the <see langword="&lt;KeyInfo&gt;" /> element in XML encryption.
public string
MimeType
Gets or sets the <see langword="MimeType" /> attribute of an <see cref="T:System.Security.Cryptography.Xml.EncryptedType" /> instance in XML encryption.
public string
Type
Gets or sets the <see langword="Type" /> attribute of an <see cref="T:System.Security.Cryptography.Xml.EncryptedType" /> instance in XML encryption.

Methods

public void
AddReference​(DataReference dataReference)
Adds a <see langword="&lt;DataReference&gt;" /> element to the <see langword="&lt;ReferenceList&gt;" /> element.
dataReference A <see cref="T:System.Security.Cryptography.Xml.DataReference" /> object to add to the <see cref="P:System.Security.Cryptography.Xml.EncryptedKey.ReferenceList" /> property.
public void
AddReference​(KeyReference keyReference)
Adds a <see langword="&lt;KeyReference&gt;" /> element to the <see langword="&lt;ReferenceList&gt;" /> element.
keyReference A <see cref="T:System.Security.Cryptography.Xml.KeyReference" /> object to add to the <see cref="P:System.Security.Cryptography.Xml.EncryptedKey.ReferenceList" /> property.
GetXml​()
Returns the XML representation of the <see cref="T:System.Security.Cryptography.Xml.EncryptedKey" /> object.
Returns An <see cref="T:System.Xml.XmlElement" /> that represents the <see langword="&lt;EncryptedKey&gt;" /> element in XML encryption.
public void
LoadXml​(Xml.​XmlElement value)
Loads the specified XML information into the <see langword="&lt;EncryptedKey&gt;" /> element in XML encryption.
value An <see cref="T:System.Xml.XmlElement" /> representing an XML element to use for the <see langword="&lt;EncryptedKey&gt;" /> element.
public void
AddProperty​(EncryptionProperty ep)
Inherited from EncryptedType
Adds an <see langword="&lt;EncryptionProperty&gt;" /> child element to the <see langword="&lt;EncryptedProperties&gt;" /> element in the current <see cref="T:System.Security.Cryptography.Xml.EncryptedType" /> object in XML encryption.
ep An <see cref="T:System.Security.Cryptography.Xml.EncryptionProperty" /> object.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object