This documentation is archived and is not being maintained.
EncryptedReference Class
Visual Studio 2008
Represents the abstract base class used in XML encryption from which the CipherReference, KeyReference, and DataReference classes derive.
Assembly: System.Security (in System.Security.dll)
The following code example uses the GetXml method in the CipherReference class to write the XML values to the console.
Imports System Imports System.Security.Cryptography.Xml Imports System.Xml Imports System.IO ' This sample used the GetXml method in the CipherReference class ' to write the value of CipherReference to the console. Module Module1 Sub Main() ' Create a URI string. Dim uri As String = "http://www.woodgrovebank.com/document.xml" ' Create a Base64 transform. The input content retrieved from the ' URI should be Base64-decoded before other processing. Dim base64 As Transform = New XmlDsigBase64Transform Dim tc As New TransformChain tc.Add(base64) ' Create <CipherReference> information. Dim reference As CipherReference = New CipherReference(uri, tc) ' Write the XML for the CipherReference to the console. Console.WriteLine("Cipher Reference: {0}", reference.GetXml().OuterXml) End Sub End Module
System.Object
System.Security.Cryptography.Xml.EncryptedReference
System.Security.Cryptography.Xml.CipherReference
System.Security.Cryptography.Xml.DataReference
System.Security.Cryptography.Xml.KeyReference
System.Security.Cryptography.Xml.EncryptedReference
System.Security.Cryptography.Xml.CipherReference
System.Security.Cryptography.Xml.DataReference
System.Security.Cryptography.Xml.KeyReference
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: