EncryptedReference クラス

定義

CipherReferenceKeyReference、および DataReference クラスの派生元となる XML 暗号化で使用される抽象基本クラスを表します。

public ref class EncryptedReference abstract
public abstract class EncryptedReference
type EncryptedReference = class
Public MustInherit Class EncryptedReference
継承
EncryptedReference
派生

次の例では、CipherReference クラスの GetXml メソッドを使用して、XML 値をコンソールに書き込みます。

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

注釈

XML 暗号化標準の詳細については、「 XML 暗号化の要件」を参照してください。

コンストラクター

名前 説明
EncryptedReference()

EncryptedReference クラスの新しいインスタンスを初期化します。

EncryptedReference(String, TransformChain)

指定した UNIFORM Resource Identifier (URI) と変換チェーンを使用して、 EncryptedReference クラスの新しいインスタンスを初期化します。

EncryptedReference(String)

指定した Uniform Resource Identifier (URI) を使用して、 EncryptedReference クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
CacheValid

キャッシュが有効かどうかを示す値を取得します。

ReferenceType

参照型を取得または設定します。

TransformChain

EncryptedReference オブジェクトの変換チェーンを取得または設定します。

Uri

EncryptedReference オブジェクトの URI (Uniform Resource Identifier) を取得または設定します。

メソッド

名前 説明
AddTransform(Transform)

Transform オブジェクトの現在の変換チェーンにEncryptedReference オブジェクトを追加します。

Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
GetXml()

EncryptedReference オブジェクトの XML 表現を返します。

LoadXml(XmlElement)

XML 要素を EncryptedReference オブジェクトに読み込みます。

MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象