System.Security.Cryptography.Xml.KeyReference Class

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

See Also: KeyReference Members


public sealed class KeyReference : EncryptedReference


The System.Security.Cryptography.Xml.KeyReference class represents the <KeyReference> element that contains information about the location of an encrypted key.

Use the <KeyReference> element to refer to <EncryptedKey> elements that were encrypted using the key defined in the enclosing <EncryptedKey> element. You can use multiple <KeyReference> elements when multiple <EncryptedKey> elements exist that are encrypted using the same key.

You can include additional information such as XPath transforms, decompression transforms, or information about how to retrieve the elements from a document storage facility to aid the decrypting application.

For more information about XML encryption standards, see the XML Encryption specification, which is available from the World Wide Web Consortium (W3C) at


Namespace: System.Security.Cryptography.Xml
Assembly: System.Security (in System.Security.dll)
Assembly Versions:,
Since: .NET 2.0