SignedXml Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Fornisce un wrapper in un oggetto di firma XML di base per facilitare la creazione di firme XML.
public ref class SignedXml
public class SignedXml
type SignedXml = class
Public Class SignedXml
- Ereditarietà
-
SignedXml
Esempio
Nell'esempio di codice seguente viene illustrato come firmare e verificare un intero documento XML usando una firma in busta.
//
// 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
Nell'esempio di codice seguente viene illustrato come firmare e verificare un singolo elemento di un documento XML usando una firma che avvolge.
//
// 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
Commenti
Per altre informazioni su questa API, vedere Osservazioni supplementari sull'API per SignedXml.
Costruttori
| Nome | Descrizione |
|---|---|
| SignedXml() |
Inizializza una nuova istanza della classe SignedXml. |
| SignedXml(XmlDocument) |
Inizializza una nuova istanza della SignedXml classe dal documento XML specificato. |
| SignedXml(XmlElement) |
Inizializza una nuova istanza della SignedXml classe dall'oggetto specificato XmlElement . |
Campi
| Nome | Descrizione |
|---|---|
| m_signature |
Rappresenta l'oggetto Signature dell'oggetto corrente SignedXml . |
| m_strSigningKeyName |
Rappresenta il nome della chiave installata da utilizzare per firmare l'oggetto SignedXml . |
| XmlDecryptionTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per la trasformazione decrittografia in modalità XML. Questo campo è costante. |
| XmlDsigBase64TransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per la trasformazione base 64. Questo campo è costante. |
| XmlDsigC14NTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per la trasformazione XML canonica. Questo campo è costante. |
| XmlDsigC14NWithCommentsTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per la trasformazione XML canonica, con commenti. Questo campo è costante. |
| XmlDsigCanonicalizationUrl |
Rappresenta l'URI (Uniform Resource Identifier) per l'algoritmo di canonizzazione standard per le firme digitali XML. Questo campo è costante. |
| XmlDsigCanonicalizationWithCommentsUrl |
Rappresenta l'URI (Uniform Resource Identifier) per l'algoritmo di canonizzazione standard per le firme digitali XML e include commenti. Questo campo è costante. |
| XmlDsigDSAUrl |
Rappresenta l'URI (Uniform Resource Identifier) per l'algoritmo standard DSA per le firme digitali XML. Questo campo è costante. |
| XmlDsigEnvelopedSignatureTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per la trasformazione della firma in busta. Questo campo è costante. |
| XmlDsigExcC14NTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per la canonizzazione XML esclusiva. Questo campo è costante. |
| XmlDsigExcC14NWithCommentsTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per la canonizzazione XML esclusiva, con commenti. Questo campo è costante. |
| XmlDsigHMACSHA1Url |
Rappresenta l'URI (Uniform Resource Identifier) per l'algoritmo standard HMACSHA1 per le firme digitali XML. Questo campo è costante. |
| XmlDsigMinimalCanonicalizationUrl |
Rappresenta l'URI (Uniform Resource Identifier) per l'algoritmo di canonizzazione minimo standard per le firme digitali XML. Questo campo è costante. |
| XmlDsigNamespaceUrl |
Rappresenta l'URI (Uniform Resource Identifier) per lo spazio dei nomi standard per le firme digitali XML. Questo campo è costante. |
| XmlDsigRSASHA1Url |
Rappresenta l'URI (Uniform Resource Identifier) per il metodo di firma standard RSA per le firme digitali XML. Questo campo è costante. |
| XmlDsigRSASHA256Url |
Rappresenta l'URI (Uniform Resource Identifier) per la variante del RSA metodo di firma SHA-256 per le firme digitali XML. Questo campo è costante. |
| XmlDsigRSASHA384Url |
Rappresenta l'URI (Uniform Resource Identifier) per la variante del RSA metodo di firma SHA-384 per le firme digitali XML. Questo campo è costante. |
| XmlDsigRSASHA512Url |
Rappresenta l'URI (Uniform Resource Identifier) per la variante del RSA metodo di firma SHA-512 per le firme digitali XML. Questo campo è costante. |
| XmlDsigSHA1Url |
Rappresenta l'URI (Uniform Resource Identifier) per il metodo digest standard SHA1 per le firme digitali XML. Questo campo è costante. |
| XmlDsigSHA256Url |
Rappresenta l'URI (Uniform Resource Identifier) per il metodo digest standard SHA256 per le firme digitali XML. Questo campo è costante. |
| XmlDsigSHA384Url |
Rappresenta l'URI (Uniform Resource Identifier) per il metodo digest standard SHA384 per le firme digitali XML. Questo campo è costante. |
| XmlDsigSHA512Url |
Rappresenta l'URI (Uniform Resource Identifier) per il metodo digest standard SHA512 per le firme digitali XML. Questo campo è costante. |
| XmlDsigXPathTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per il linguaggio XPath (XML Path Language). Questo campo è costante. |
| XmlDsigXsltTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per le trasformazioni XSLT. Questo campo è costante. |
| XmlLicenseTransformUrl |
Rappresenta l'URI (Uniform Resource Identifier) per l'algoritmo di trasformazione delle licenze usato per normalizzare le licenze XrML per le firme. |
Proprietà
| Nome | Descrizione |
|---|---|
| EncryptedXml |
Ottiene o imposta un EncryptedXml oggetto che definisce le regole di elaborazione della crittografia XML. |
| KeyInfo |
Ottiene o imposta l'oggetto KeyInfo dell'oggetto corrente SignedXml . |
| Resolver |
Imposta l'oggetto corrente XmlResolver . |
| SafeCanonicalizationMethods |
Ottiene i nomi dei metodi i cui algoritmi di canonizzazione sono consentiti in modo esplicito. |
| Signature |
Ottiene l'oggetto Signature dell'oggetto corrente SignedXml . |
| SignatureFormatValidator |
Ottiene un delegato che verrà chiamato per convalidare il formato (non la sicurezza crittografica) di una firma XML. |
| SignatureLength |
Ottiene la lunghezza della firma per l'oggetto corrente SignedXml . |
| SignatureMethod |
Ottiene il metodo di firma dell'oggetto corrente SignedXml . |
| SignatureValue |
Ottiene il valore della firma dell'oggetto corrente SignedXml . |
| SignedInfo |
Ottiene l'oggetto SignedInfo dell'oggetto corrente SignedXml . |
| SigningKey |
Ottiene o imposta la chiave dell'algoritmo asimmetrico utilizzata per firmare un SignedXml oggetto . |
| SigningKeyName |
Ottiene o imposta il nome della chiave installata da utilizzare per firmare l'oggetto SignedXml . |
Metodi
| Nome | Descrizione |
|---|---|
| AddObject(DataObject) |
Aggiunge un DataObject oggetto all'elenco di oggetti da firmare. |
| AddReference(Reference) |
Aggiunge un Reference oggetto all'oggetto SignedXml che descrive un metodo digest, un valore digest e una trasformazione da utilizzare per la creazione di una firma digitale XML. |
| CheckSignature() |
Determina se la Signature proprietà verifica l'utilizzo della chiave pubblica nella firma. |
| CheckSignature(AsymmetricAlgorithm) |
Determina se la Signature proprietà verifica la chiave specificata. |
| CheckSignature(KeyedHashAlgorithm) |
Determina se la Signature proprietà verifica l'algoritmo MAC (Message Authentication Code) specificato. |
| CheckSignature(X509Certificate2, Boolean) |
Determina se la Signature proprietà verifica l'oggetto specificato X509Certificate2 e, facoltativamente, se il certificato è valido. |
| CheckSignatureReturningKey(AsymmetricAlgorithm) |
Determina se la Signature proprietà verifica l'utilizzo della chiave pubblica nella firma. |
| ComputeSignature() |
Calcola una firma digitale XML. |
| ComputeSignature(KeyedHashAlgorithm) |
Calcola una firma digitale XML usando l'algoritmo MAC (Message Authentication Code) specificato. |
| Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente. (Ereditato da Object) |
| GetHashCode() |
Funge da funzione hash predefinita. (Ereditato da Object) |
| GetIdElement(XmlDocument, String) |
Restituisce l'oggetto XmlElement con l'ID specificato dall'oggetto specificato XmlDocument . |
| GetPublicKey() |
Restituisce la chiave pubblica di una firma. |
| GetType() |
Ottiene il Type dell'istanza corrente. (Ereditato da Object) |
| GetXml() |
Restituisce la rappresentazione XML di un SignedXml oggetto . |
| LoadXml(XmlElement) |
Carica uno SignedXml stato da un elemento XML. |
| MemberwiseClone() |
Crea una copia superficiale del Objectcorrente. (Ereditato da Object) |
| ToString() |
Restituisce una stringa che rappresenta l'oggetto corrente. (Ereditato da Object) |