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="<EncryptedKey>" /> element in XML encryption. This class cannot be inherited.
Properties
public
string
CarriedKeyName
Gets or sets the optional <see langword="<CarriedKeyName>" /> 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="<ReferenceList>" /> 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.
public
EncryptionMethod
EncryptionMethod
Gets or sets the <see langword="<EncryptionMethod>" /> element for XML encryption.
public
EncryptionPropertyCollection
EncryptionProperties
Gets or sets the <see langword="<EncryptionProperties>" /> 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="<KeyInfo>" /> 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="<DataReference>" /> element to the <see langword="<ReferenceList>" /> 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="<KeyReference>" /> element to the <see langword="<ReferenceList>" /> 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="<EncryptedKey>" /> element in XML encryption.
public
void
LoadXml​(Xml.​XmlElement value)
Loads the specified XML information into the <see langword="<EncryptedKey>" /> element in XML encryption.
value
An <see cref="T:System.Xml.XmlElement" /> representing an XML element to use for the <see langword="<EncryptedKey>" /> element.
public
void
AddProperty​(EncryptionProperty ep)
Inherited from EncryptedType
Adds an <see langword="<EncryptionProperty>" /> child element to the <see langword="<EncryptedProperties>" /> 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
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object