本文整理汇总了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