本文整理匯總了VB.NET中System.Security.Cryptography.Xml.EncryptedReference類的典型用法代碼示例。如果您正苦於以下問題:VB.NET EncryptedReference類的具體用法?VB.NET EncryptedReference怎麽用?VB.NET EncryptedReference使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了EncryptedReference類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: Main
' 導入命名空間
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