SignedXml Класс

Определение

Предоставляет оболочку для основного объекта XML-подписи для упрощения создания XML-подписей.

public ref class SignedXml
public class SignedXml
type SignedXml = class
Public Class SignedXml
Наследование
SignedXml

Примеры

В следующем примере кода показано, как подписать и проверить весь XML-документ с помощью конвертной подписи.

//
// This example signs an XML file using an
// envelope signature. It then verifies the 
// signed XML.
//
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml;
using System.Text;
using System.Xml;

public class SignVerifyEnvelope
{

    public static void Main(String[] args)
    {
        try
        {
           // Generate a signing key.
           RSA Key = RSA.Create();

           // Create an XML file to sign.
           CreateSomeXml("Example.xml");
           Console.WriteLine("New XML file created."); 

           // Sign the XML that was just created and save it in a 
           // new file.
           SignXmlFile("Example.xml", "signedExample.xml", Key);
           Console.WriteLine("XML file signed."); 

           // Verify the signature of the signed XML.
           Console.WriteLine("Verifying signature...");
           bool result = VerifyXmlFile("SignedExample.xml", Key);

           // Display the results of the signature verification to 
           // the console.
           if(result)
           {
               Console.WriteLine("The XML signature is valid.");
           }
           else
           {
            Console.WriteLine("The XML signature is not valid.");
           }
        }
        catch(CryptographicException e)
        {
            Console.WriteLine(e.Message);
        }
    }

    // Sign an XML file and save the signature in a new file. This method does not  
    // save the public key within the XML file.  This file cannot be verified unless  
    // the verifying code has the key with which it was signed.
    public static void SignXmlFile(string FileName, string SignedFileName, RSA Key)
    {
        // Create a new XML document.
        XmlDocument doc = new XmlDocument();

        // Load the passed XML file using its name.
        doc.Load(new XmlTextReader(FileName));

        // Create a SignedXml object.
        SignedXml signedXml = new SignedXml(doc);

        // Add the key to the SignedXml document. 
        signedXml.SigningKey = Key;

        // Create a reference to be signed.
        Reference reference = new Reference();
        reference.Uri = "";

        // Add an enveloped transformation to the reference.
        XmlDsigEnvelopedSignatureTransform env = new XmlDsigEnvelopedSignatureTransform();
        reference.AddTransform(env);

        // Add the reference to the SignedXml object.
        signedXml.AddReference(reference);

        // Compute the signature.
        signedXml.ComputeSignature();

        // Get the XML representation of the signature and save
        // it to an XmlElement object.
        XmlElement xmlDigitalSignature = signedXml.GetXml();

        // Append the element to the XML document.
        doc.DocumentElement.AppendChild(doc.ImportNode(xmlDigitalSignature, true));
        
        if (doc.FirstChild is XmlDeclaration)  
        {
            doc.RemoveChild(doc.FirstChild);
        }

        // Save the signed XML document to a file specified
        // using the passed string.
        XmlTextWriter xmltw = new XmlTextWriter(SignedFileName, new UTF8Encoding(false));
        doc.WriteTo(xmltw);
        xmltw.Close();
    }

    // Verify the signature of an XML file against an asymmetric 
    // algorithm and return the result.
    public static Boolean VerifyXmlFile(String Name, RSA Key)
    {
        // Create a new XML document.
        XmlDocument xmlDocument = new XmlDocument();

        // Load the passed XML file into the document. 
        xmlDocument.Load(Name);

        // Create a new SignedXml object and pass it
        // the XML document class.
        SignedXml signedXml = new SignedXml(xmlDocument);

        // Find the "Signature" node and create a new
        // XmlNodeList object.
        XmlNodeList nodeList = xmlDocument.GetElementsByTagName("Signature");

        // Load the signature node.
        signedXml.LoadXml((XmlElement)nodeList[0]);

        // Check the signature and return the result.
        return signedXml.CheckSignature(Key);
    }

    // Create example data to sign.
    public static void CreateSomeXml(string FileName)
    {
        // Create a new XmlDocument object.
        XmlDocument document = new XmlDocument();

        // Create a new XmlNode object.
        XmlNode  node = document.CreateNode(XmlNodeType.Element, "", "MyElement", "samples");
        
        // Add some text to the node.
        node.InnerText = "Example text to be signed.";

        // Append the node to the document.
        document.AppendChild(node);

        // Save the XML document to the file name specified.
        XmlTextWriter xmltw = new XmlTextWriter(FileName, new UTF8Encoding(false));
        document.WriteTo(xmltw);
        xmltw.Close();
    }
}
'
' This example signs an XML file using an
' envelope signature. It then verifies the 
' signed XML.
'
Imports System.Security.Cryptography
Imports System.Security.Cryptography.X509Certificates
Imports System.Security.Cryptography.Xml
Imports System.Text
Imports System.Xml



Public Class SignVerifyEnvelope
   
   Overloads Public Shared Sub Main(args() As [String])
      Try
         ' Generate a signing key.
         Dim Key As RSA = RSA.Create()
         
         ' Create an XML file to sign.
         CreateSomeXml("Example.xml")
         Console.WriteLine("New XML file created.")
         
         ' Sign the XML that was just created and save it in a 
         ' new file.
         SignXmlFile("Example.xml", "signedExample.xml", Key)
         Console.WriteLine("XML file signed.")
         
         ' Verify the signature of the signed XML.
         Console.WriteLine("Verifying signature...")
         Dim result As Boolean = VerifyXmlFile("SignedExample.xml", Key)
         
         ' Display the results of the signature verification to 
         ' the console.
         If result Then
            Console.WriteLine("The XML signature is valid.")
         Else
            Console.WriteLine("The XML signature is not valid.")
         End If
      Catch e As CryptographicException
         Console.WriteLine(e.Message)
      End Try
   End Sub 
   
   
   
   ' Sign an XML file and save the signature in a new file. This method does not  
   ' save the public key within the XML file.  This file cannot be verified unless  
   ' the verifying code has the key with which it was signed.
   Public Shared Sub SignXmlFile(FileName As String, SignedFileName As String, Key As RSA)
      ' Create a new XML document.
      Dim doc As New XmlDocument()
      
      ' Load the passed XML file using its name.
      doc.Load(New XmlTextReader(FileName))
      
      ' Create a SignedXml object.
      Dim signedXml As New SignedXml(doc)
      
      ' Add the key to the SignedXml document. 
      signedXml.SigningKey = Key
      
      ' Create a reference to be signed.
      Dim reference As New Reference()
      reference.Uri = ""
      
      ' Add an enveloped transformation to the reference.
      Dim env As New XmlDsigEnvelopedSignatureTransform()
      reference.AddTransform(env)
      
      ' Add the reference to the SignedXml object.
      signedXml.AddReference(reference)
      
      ' Compute the signature.
      signedXml.ComputeSignature()
      
      ' Get the XML representation of the signature and save
      ' it to an XmlElement object.
      Dim xmlDigitalSignature As XmlElement = signedXml.GetXml()
      
      ' Append the element to the XML document.
      doc.DocumentElement.AppendChild(doc.ImportNode(xmlDigitalSignature, True))
      
      If TypeOf doc.FirstChild Is XmlDeclaration Then
         doc.RemoveChild(doc.FirstChild)
      End If
      
      ' Save the signed XML document to a file specified
      ' using the passed string.
      Dim xmltw As New XmlTextWriter(SignedFileName, New UTF8Encoding(False))
      doc.WriteTo(xmltw)
      xmltw.Close()
   End Sub
   
   
   ' Verify the signature of an XML file against an asymmetric 
   ' algorithm and return the result.
   Public Shared Function VerifyXmlFile(Name As [String], Key As RSA) As [Boolean]
      ' Create a new XML document.
      Dim xmlDocument As New XmlDocument()
      
      ' Load the passed XML file into the document. 
      xmlDocument.Load(Name)
      
      ' Create a new SignedXml object and pass it
      ' the XML document class.
      Dim signedXml As New SignedXml(xmlDocument)
      
      ' Find the "Signature" node and create a new
      ' XmlNodeList object.
      Dim nodeList As XmlNodeList = xmlDocument.GetElementsByTagName("Signature")
      
      ' Load the signature node.
      signedXml.LoadXml(CType(nodeList(0), XmlElement))
      
      ' Check the signature and return the result.
      Return signedXml.CheckSignature(Key)
   End Function 
   
   
   
   ' Create example data to sign.
   Public Shared Sub CreateSomeXml(FileName As String)
      ' Create a new XmlDocument object.
      Dim document As New XmlDocument()
      
      ' Create a new XmlNode object.
      Dim node As XmlNode = document.CreateNode(XmlNodeType.Element, "", "MyElement", "samples")
      
      ' Add some text to the node.
      node.InnerText = "Example text to be signed."
      
      ' Append the node to the document.
      document.AppendChild(node)
      
      ' Save the XML document to the file name specified.
      Dim xmltw As New XmlTextWriter(FileName, New UTF8Encoding(False))
      document.WriteTo(xmltw)
      xmltw.Close()
   End Sub 
End Class

В следующем примере кода показано, как подписывать и проверять один элемент XML-документа с помощью подписи, вращающейся.

//
// This example signs an XML file using an
// envelope signature. It then verifies the
// signed XML.
//
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.Xml;
using System.Text;
using System.Xml;

public class SignVerifyEnvelope
{

    public static void Main(String[] args)
    {
        // Generate a signing key.
       RSA Key = RSA.Create();

       try
       {
           // Specify an element to sign.
           string[] elements =  { "#tag1" };

           // Sign an XML file and save the signature to a
           // new file.
           SignXmlFile("Test.xml", "SignedExample.xml", Key, elements);
           Console.WriteLine("XML file signed.");

           // Verify the signature of the signed XML.
           Console.WriteLine("Verifying signature...");

           bool result = VerifyXmlFile("SignedExample.xml");

           // Display the results of the signature verification to
           // the console.
           if (result)
           {
               Console.WriteLine("The XML signature is valid.");
           }
           else
           {
               Console.WriteLine("The XML signature is not valid.");
           }
       }
       catch (CryptographicException e)
       {
           Console.WriteLine(e.Message);
       }
       finally
       {
           // Clear resources associated with the
           // RSA instance.
           Key.Clear();
       }
   }

    // Sign an XML file and save the signature in a new file.
    public static void SignXmlFile(string FileName, string SignedFileName, RSA Key, string[] ElementsToSign)
    {
        // Check the arguments.
        if (FileName == null)
            throw new ArgumentNullException("FileName");
        if (SignedFileName == null)
            throw new ArgumentNullException("SignedFileName");
        if (Key == null)
            throw new ArgumentNullException("Key");
        if (ElementsToSign == null)
            throw new ArgumentNullException("ElementsToSign");

        // Create a new XML document.
        XmlDocument doc = new XmlDocument();

        // Format the document to ignore white spaces.
        doc.PreserveWhitespace = false;

        // Load the passed XML file using it's name.
        doc.Load(new XmlTextReader(FileName));

        // Create a SignedXml object.
        SignedXml signedXml = new SignedXml(doc);

        // Add the key to the SignedXml document.
        signedXml.SigningKey = Key;

        // Loop through each passed element to sign
        // and create a reference.
        foreach (string s in ElementsToSign)
        {
            // Create a reference to be signed.
            Reference reference = new Reference();
            reference.Uri = s;

            // Add an enveloped transformation to the reference.
            XmlDsigEnvelopedSignatureTransform env = new XmlDsigEnvelopedSignatureTransform();
            reference.AddTransform(env);

            // Add the reference to the SignedXml object.
            signedXml.AddReference(reference);
        }

        // Add an RSAKeyValue KeyInfo (optional; helps recipient find key to validate).
        KeyInfo keyInfo = new KeyInfo();
        keyInfo.AddClause(new RSAKeyValue((RSA)Key));
        signedXml.KeyInfo = keyInfo;

        // Compute the signature.
        signedXml.ComputeSignature();

        // Get the XML representation of the signature and save
        // it to an XmlElement object.
        XmlElement xmlDigitalSignature = signedXml.GetXml();

        // Append the element to the XML document.
        doc.DocumentElement.AppendChild(doc.ImportNode(xmlDigitalSignature, true));

        if (doc.FirstChild is XmlDeclaration)
        {
            doc.RemoveChild(doc.FirstChild);
        }

        // Save the signed XML document to a file specified
        // using the passed string.
        XmlTextWriter xmltw = new XmlTextWriter(SignedFileName, new UTF8Encoding(false));
        doc.WriteTo(xmltw);
        xmltw.Close();
    }
    // Verify the signature of an XML file and return the result.
    public static Boolean VerifyXmlFile(String Name)
    {
        // Check the arguments.
        if (Name == null)
            throw new ArgumentNullException("Name");

        // Create a new XML document.
        XmlDocument xmlDocument = new XmlDocument();

        // Format using white spaces.
        xmlDocument.PreserveWhitespace = true;

        // Load the passed XML file into the document.
        xmlDocument.Load(Name);

        // Create a new SignedXml object and pass it
        // the XML document class.
        SignedXml signedXml = new SignedXml(xmlDocument);

        // Find the "Signature" node and create a new
        // XmlNodeList object.
        XmlNodeList nodeList = xmlDocument.GetElementsByTagName("Signature");

        // Load the signature node.
        signedXml.LoadXml((XmlElement)nodeList[0]);

        // Check the signature and return the result.
        return signedXml.CheckSignature();
    }
}
' This example signs an XML file using an
' envelope signature. It then verifies the 
' signed XML.
'
Imports System.Security.Cryptography
Imports System.Security.Cryptography.Xml
Imports System.Text
Imports System.Xml



Module SignVerifyEnvelope



    Sub Main(ByVal args() As String)
        ' Generate a signing key.
        Dim Key As RSA = RSA.Create()

        Try
            ' Specify an element to sign. 
            Dim elements As String() = New String() {"#tag1"}

            ' Sign an XML file and save the signature to a 
            ' new file.
            SignXmlFile("Test.xml", "SignedExample.xml", Key, elements)
            Console.WriteLine("XML file signed.")

            ' Verify the signature of the signed XML.
            Console.WriteLine("Verifying signature...")

            Dim result As Boolean = VerifyXmlFile("SignedExample.xml")

            ' Display the results of the signature verification to \
            ' the console.
            If result Then
                Console.WriteLine("The XML signature is valid.")
            Else
                Console.WriteLine("The XML signature is not valid.")
            End If
        Catch e As CryptographicException
            Console.WriteLine(e.Message)
        Finally
            ' Clear resources associated with the 
            ' RSA instance.
            Key.Clear()
        End Try

    End Sub


    ' Sign an XML file and save the signature in a new file.
    Sub SignXmlFile(ByVal FileName As String, ByVal SignedFileName As String, ByVal Key As RSA, ByVal ElementsToSign() As String)
        ' Check the arguments.  
        If FileName Is Nothing Then
            Throw New ArgumentNullException("FileName")
        End If
        If SignedFileName Is Nothing Then
            Throw New ArgumentNullException("SignedFileName")
        End If
        If Key Is Nothing Then
            Throw New ArgumentNullException("Key")
        End If
        If ElementsToSign Is Nothing Then
            Throw New ArgumentNullException("ElementsToSign")
        End If
        ' Create a new XML document.
        Dim doc As New XmlDocument()

        ' Format the document to ignore white spaces.
        doc.PreserveWhitespace = False

        ' Load the passed XML file using it's name.
        doc.Load(New XmlTextReader(FileName))

        ' Create a SignedXml object.
        Dim signedXml As New SignedXml(doc)

        ' Add the key to the SignedXml document. 
        signedXml.SigningKey = Key

        ' Loop through each passed element to sign 
        ' and create a reference.
        Dim s As String
        For Each s In ElementsToSign
            ' Create a reference to be signed.
            Dim reference As New Reference()
            reference.Uri = s

            ' Add an enveloped transformation to the reference.
            Dim env As New XmlDsigEnvelopedSignatureTransform()
            reference.AddTransform(env)

            ' Add the reference to the SignedXml object.
            signedXml.AddReference(reference)
        Next s

        ' Add an RSAKeyValue KeyInfo (optional; helps recipient find key to validate).
        Dim keyInfo As New KeyInfo()
        keyInfo.AddClause(New RSAKeyValue(CType(Key, RSA)))
        signedXml.KeyInfo = keyInfo

        ' Compute the signature.
        signedXml.ComputeSignature()

        ' Get the XML representation of the signature and save
        ' it to an XmlElement object.
        Dim xmlDigitalSignature As XmlElement = signedXml.GetXml()

        ' Append the element to the XML document.
        doc.DocumentElement.AppendChild(doc.ImportNode(xmlDigitalSignature, True))


        If TypeOf doc.FirstChild Is XmlDeclaration Then
            doc.RemoveChild(doc.FirstChild)
        End If

        ' Save the signed XML document to a file specified
        ' using the passed string.
        Dim xmltw As New XmlTextWriter(SignedFileName, New UTF8Encoding(False))
        doc.WriteTo(xmltw)
        xmltw.Close()

    End Sub

    ' Verify the signature of an XML file and return the result.
    Function VerifyXmlFile(ByVal Name As String) As [Boolean]
        ' Check the arguments.  
        If Name Is Nothing Then
            Throw New ArgumentNullException("Name")
        End If
        ' Create a new XML document.
        Dim xmlDocument As New XmlDocument()

        ' Format using white spaces.
        xmlDocument.PreserveWhitespace = True

        ' Load the passed XML file into the document. 
        xmlDocument.Load(Name)

        ' Create a new SignedXml object and pass it
        ' the XML document class.
        Dim signedXml As New SignedXml(xmlDocument)

        ' Find the "Signature" node and create a new
        ' XmlNodeList object.
        Dim nodeList As XmlNodeList = xmlDocument.GetElementsByTagName("Signature")

        ' Load the signature node.
        signedXml.LoadXml(CType(nodeList(0), XmlElement))

        ' Check the signature and return the result.
        Return signedXml.CheckSignature()

    End Function
End Module

Комментарии

Дополнительные сведения об этом API см. в дополнительных примечаниях API для SignedXml.

Конструкторы

Имя Описание
SignedXml()

Инициализирует новый экземпляр класса SignedXml.

SignedXml(XmlDocument)

Инициализирует новый экземпляр класса из указанного SignedXml XML-документа.

SignedXml(XmlElement)

Инициализирует новый экземпляр класса из указанного SignedXmlXmlElement объекта.

Поля

Имя Описание
m_signature

Signature Представляет объект текущего SignedXml объекта.

m_strSigningKeyName

Представляет имя установленного ключа, используемого для подписи SignedXml объекта.

XmlDecryptionTransformUrl

Представляет универсальный идентификатор ресурса (URI) для преобразования расшифровки в режиме XML. Это поле является константой.

XmlDsigBase64TransformUrl

Представляет универсальный идентификатор ресурса (URI) для преобразования base 64. Это поле является константой.

XmlDsigC14NTransformUrl

Представляет универсальный идентификатор ресурса (URI) для преобразования Канонического XML. Это поле является константой.

XmlDsigC14NWithCommentsTransformUrl

Представляет универсальный идентификатор ресурса (URI) для преобразования Канонического XML с комментариями. Это поле является константой.

XmlDsigCanonicalizationUrl

Представляет универсальный идентификатор ресурса (URI) для стандартного алгоритма канонизации для цифровых подписей XML. Это поле является константой.

XmlDsigCanonicalizationWithCommentsUrl

Представляет универсальный идентификатор ресурса (URI) для стандартного алгоритма канонизации для цифровых подписей XML и содержит примечания. Это поле является константой.

XmlDsigDSAUrl

Представляет универсальный идентификатор ресурса (URI) для стандартного DSA алгоритма для цифровых подписей XML. Это поле является константой.

XmlDsigEnvelopedSignatureTransformUrl

Представляет универсальный идентификатор ресурса (URI) для преобразования конвертной подписи. Это поле является константой.

XmlDsigExcC14NTransformUrl

Представляет универсальный идентификатор ресурса (URI) для эксклюзивной канонизации XML. Это поле является константой.

XmlDsigExcC14NWithCommentsTransformUrl

Представляет универсальный идентификатор ресурса (URI) для эксклюзивной канонизации XML с комментариями. Это поле является константой.

XmlDsigHMACSHA1Url

Представляет универсальный идентификатор ресурса (URI) для стандартного HMACSHA1 алгоритма для цифровых подписей XML. Это поле является константой.

XmlDsigMinimalCanonicalizationUrl

Представляет универсальный идентификатор ресурса (URI) стандартного минимального алгоритма канонизации для цифровых подписей XML. Это поле является константой.

XmlDsigNamespaceUrl

Представляет универсальный идентификатор ресурса (URI) для стандартного пространства имен для цифровых подписей XML. Это поле является константой.

XmlDsigRSASHA1Url

Представляет универсальный идентификатор ресурса (URI) для стандартного RSA метода подписи для цифровых подписей XML. Это поле является константой.

XmlDsigRSASHA256Url

Представляет универсальный идентификатор ресурса (URI) для варианта метода подписи SHA-256 для RSA цифровых подписей XML. Это поле является константой.

XmlDsigRSASHA384Url

Представляет универсальный идентификатор ресурса (URI) для варианта метода подписи SHA-384 для RSA цифровых подписей XML. Это поле является константой.

XmlDsigRSASHA512Url

Представляет универсальный идентификатор ресурса (URI) для RSA варианта метода подписи SHA-512 для цифровых подписей XML. Это поле является константой.

XmlDsigSHA1Url

Представляет универсальный идентификатор ресурса (URI) для стандартного SHA1 метода дайджеста для цифровых подписей XML. Это поле является константой.

XmlDsigSHA256Url

Представляет универсальный идентификатор ресурса (URI) для стандартного SHA256 метода дайджеста для цифровых подписей XML. Это поле является константой.

XmlDsigSHA384Url

Представляет универсальный идентификатор ресурса (URI) для стандартного SHA384 метода дайджеста для цифровых подписей XML. Это поле является константой.

XmlDsigSHA512Url

Представляет универсальный идентификатор ресурса (URI) для стандартного SHA512 метода дайджеста для цифровых подписей XML. Это поле является константой.

XmlDsigXPathTransformUrl

Представляет универсальный идентификатор ресурса (URI) для языка XML-пути (XPath). Это поле является константой.

XmlDsigXsltTransformUrl

Представляет универсальный идентификатор ресурса (URI) для преобразований XSLT. Это поле является константой.

XmlLicenseTransformUrl

Представляет универсальный идентификатор ресурса (URI) для алгоритма преобразования лицензий, используемого для нормализации лицензий XrML для подписей.

Свойства

Имя Описание
EncryptedXml

Возвращает или задает объект, определяющий EncryptedXml правила обработки XML-шифрования.

KeyInfo

Возвращает или задает KeyInfo объект текущего SignedXml объекта.

Resolver

Задает текущий XmlResolver объект.

SafeCanonicalizationMethods

Получает имена методов, канонические алгоритмы которых явно разрешены.

Signature

Signature Возвращает объект текущего SignedXml объекта.

SignatureFormatValidator

Получает делегат, который будет вызываться для проверки формата (а не криптографической безопасности) xml-подписи.

SignatureLength

Возвращает длину сигнатуры для текущего SignedXml объекта.

SignatureMethod

Возвращает метод подписи текущего SignedXml объекта.

SignatureValue

Возвращает значение сигнатуры текущего SignedXml объекта.

SignedInfo

SignedInfo Возвращает объект текущего SignedXml объекта.

SigningKey

Возвращает или задает асимметричный ключ алгоритма, используемый SignedXml для подписывания объекта.

SigningKeyName

Возвращает или задает имя установленного ключа, используемого для подписи SignedXml объекта.

Методы

Имя Описание
AddObject(DataObject)

DataObject Добавляет объект в список объектов, подписанных.

AddReference(Reference)

Reference Добавляет объект в SignedXml объект, описывающий метод дайджеста, значение дайджеста и преобразование для создания цифровой подписи XML.

CheckSignature()

Определяет, проверяет ли Signature свойство использование открытого ключа в сигнатуре.

CheckSignature(AsymmetricAlgorithm)

Определяет, проверяет ли Signature свойство указанный ключ.

CheckSignature(KeyedHashAlgorithm)

Определяет, проверяет ли Signature свойство указанный алгоритм проверки подлинности сообщения (MAC).

CheckSignature(X509Certificate2, Boolean)

Определяет, проверяет ли Signature свойство указанный X509Certificate2 объект и, при необходимости, является ли сертификат допустимым.

CheckSignatureReturningKey(AsymmetricAlgorithm)

Определяет, проверяет ли Signature свойство использование открытого ключа в сигнатуре.

ComputeSignature()

Вычисляет цифровую подпись XML.

ComputeSignature(KeyedHashAlgorithm)

Вычисляет цифровую подпись XML с помощью указанного алгоритма проверки подлинности сообщений (MAC).

Equals(Object)

Определяет, равен ли указанный объект текущему объекту.

(Унаследовано от Object)
GetHashCode()

Служит хэш-функцией по умолчанию.

(Унаследовано от Object)
GetIdElement(XmlDocument, String)

XmlElement Возвращает объект с указанным идентификатором из указанного XmlDocument объекта.

GetPublicKey()

Возвращает открытый ключ подписи.

GetType()

Возвращает Type текущего экземпляра.

(Унаследовано от Object)
GetXml()

Возвращает XML-представление SignedXml объекта.

LoadXml(XmlElement)

SignedXml Загружает состояние из XML-элемента.

MemberwiseClone()

Создает неглубокую копию текущей Object.

(Унаследовано от Object)
ToString()

Возвращает строку, представляющую текущий объект.

(Унаследовано от Object)

Применяется к

См. также раздел