EncryptedReference Sınıf

Tanım

, CipherReferenceve KeyReference sınıflarının türetildiği DataReferenceXML şifrelemesinde kullanılan soyut temel sınıfı temsil eder.

public ref class EncryptedReference abstract
public abstract class EncryptedReference
type EncryptedReference = class
Public MustInherit Class EncryptedReference
Devralma
EncryptedReference
Türetilmiş

Örnekler

Aşağıdaki örnek, xml değerlerini konsola yazmak için sınıfındaki yöntemini GetXml kullanırCipherReference.

using System;
using System.Security.Cryptography.Xml;
using System.Xml;
using System.IO;

/// This sample used the GetXml method in the CipherReference class to
/// write the XML values for the CipherReference to the console.
namespace CipherReference2
{
    class CipherReference2
    {
        [STAThread]
        static void Main(string[] args)
        {
            //Create a URI string.
            String uri = "http://www.woodgrovebank.com/document.xml";

            // Create a Base64 transform. The input content retrieved from the
            // URI should be Base64-decoded before other processing.
            Transform base64 = new XmlDsigBase64Transform();

            //Create a transform chain and add the transform to it.
            TransformChain tc = new TransformChain();

            tc.Add(base64);

            //Create <CipherReference> information.
            CipherReference reference = new CipherReference(uri, tc);
            // Write the CipherReference value to the console.
            Console.WriteLine("Cipher Reference data: {0}", reference.GetXml().OuterXml);
        }
    }
}
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

Açıklamalar

XML şifreleme standartları hakkında daha fazla bilgi için bkz. XML Şifreleme Gereksinimleri.

Oluşturucular

Name Description
EncryptedReference()

EncryptedReference sınıfının yeni bir örneğini başlatır.

EncryptedReference(String, TransformChain)

Belirtilen Tekdüzen Kaynak Tanımlayıcısı (URI) ve dönüştürme zincirini kullanarak sınıfının yeni bir örneğini EncryptedReference başlatır.

EncryptedReference(String)

Belirtilen Tekdüzen Kaynak Tanımlayıcısı'nı EncryptedReference (URI) kullanarak sınıfın yeni bir örneğini başlatır.

Özellikler

Name Description
CacheValid

Önbelleğin geçerli olup olmadığını gösteren bir değer alır.

ReferenceType

Başvuru türünü alır veya ayarlar.

TransformChain

Bir EncryptedReference nesnenin dönüştürme zincirini alır veya ayarlar.

Uri

Bir EncryptedReference nesnenin Tekdüzen Kaynak Tanımlayıcısını (URI) alır veya ayarlar.

Yöntemler

Name Description
AddTransform(Transform)

Bir Transform nesnenin geçerli dönüştürme zincirine nesne EncryptedReference ekler.

Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
GetHashCode()

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()

Geçerli örneğin Type alır.

(Devralındığı yer: Object)
GetXml()

Bir EncryptedReference nesnenin XML gösterimini döndürür.

LoadXml(XmlElement)

Xml öğesini bir EncryptedReference nesneye yükler.

MemberwiseClone()

Geçerli Objectbasit bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden bir dize döndürür.

(Devralındığı yer: Object)

Şunlara uygulanır