SignedXml Klas
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Biedt een wrapper op een basis-XML-handtekeningobject om het maken van XML-handtekeningen te vergemakkelijken.
public ref class SignedXml
public class SignedXml
type SignedXml = class
Public Class SignedXml
- Overname
-
SignedXml
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u een volledig XML-document kunt ondertekenen en verifiëren met behulp van een envelophandtekening.
//
// 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
In het volgende codevoorbeeld ziet u hoe u één element van een XML-document ondertekent en verifieert met behulp van een enveloppenhandtekening.
//
// 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
Opmerkingen
Zie Aanvullende API-opmerkingen voor SignedXml voor meer informatie over deze API.
Constructors
| Name | Description |
|---|---|
| SignedXml() |
Initialiseert een nieuw exemplaar van de SignedXml klasse. |
| SignedXml(XmlDocument) |
Initialiseert een nieuw exemplaar van de SignedXml klasse uit het opgegeven XML-document. |
| SignedXml(XmlElement) |
Initialiseert een nieuw exemplaar van de SignedXml klasse van het opgegeven XmlElement object. |
Velden
| Name | Description |
|---|---|
| m_signature |
Vertegenwoordigt het Signature object van het huidige SignedXml object. |
| m_strSigningKeyName |
Vertegenwoordigt de naam van de geïnstalleerde sleutel die moet worden gebruikt voor het ondertekenen van het SignedXml object. |
| XmlDecryptionTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de xml-modusontsleutelingstransformatie. Dit veld is constant. |
| XmlDsigBase64TransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de basis 64-transformatie. Dit veld is constant. |
| XmlDsigC14NTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de Canonical XML-transformatie. Dit veld is constant. |
| XmlDsigC14NWithCommentsTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de Canonical XML-transformatie, met opmerkingen. Dit veld is constant. |
| XmlDsigCanonicalizationUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor het standaard-canonicalisatie-algoritme voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigCanonicalizationWithCommentsUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor het standaard-canonicalisatie-algoritme voor XML-digitale handtekeningen en bevat opmerkingen. Dit veld is constant. |
| XmlDsigDSAUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor het standaardalgoritmen DSA voor digitale XML-handtekeningen. Dit veld is constant. |
| XmlDsigEnvelopedSignatureTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor transformatie van enveloppen. Dit veld is constant. |
| XmlDsigExcC14NTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor exclusieve XML-canonicalisatie. Dit veld is constant. |
| XmlDsigExcC14NWithCommentsTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor exclusieve XML-canonicalisatie, met opmerkingen. Dit veld is constant. |
| XmlDsigHMACSHA1Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor het standaardalgoritmen HMACSHA1 voor digitale XML-handtekeningen. Dit veld is constant. |
| XmlDsigMinimalCanonicalizationUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor het standaard minimale canonicalisatie-algoritme voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigNamespaceUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de standaardnaamruimte voor digitale XML-handtekeningen. Dit veld is constant. |
| XmlDsigRSASHA1Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de standaardhandtekeningsmethode RSA voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigRSASHA256Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de RSA SHA-256-handtekeningmethodevariatie voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigRSASHA384Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de RSA SHA-384-handtekeningmethodevariatie voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigRSASHA512Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de RSA sha-512-handtekeningmethodevariatie voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigSHA1Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de standaardsamenvatingsmethode SHA1 voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigSHA256Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de standaardsamenvatingsmethode SHA256 voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigSHA384Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de standaardsamenvatingsmethode SHA384 voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigSHA512Url |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de standaardsamenvatingsmethode SHA512 voor XML-digitale handtekeningen. Dit veld is constant. |
| XmlDsigXPathTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor de XML-padtaal (XPath). Dit veld is constant. |
| XmlDsigXsltTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor XSLT-transformaties. Dit veld is constant. |
| XmlLicenseTransformUrl |
Vertegenwoordigt de URI (Uniform Resource Identifier) voor het algoritme voor licentietransformatie dat wordt gebruikt voor het normaliseren van XrML-licenties voor handtekeningen. |
Eigenschappen
| Name | Description |
|---|---|
| EncryptedXml |
Hiermee wordt een EncryptedXml object opgehaald of ingesteld waarmee de regels voor XML-versleutelingsverwerking worden gedefinieerd. |
| KeyInfo |
Hiermee wordt het KeyInfo object van het huidige SignedXml object opgehaald of ingesteld. |
| Resolver |
Hiermee stelt u het huidige XmlResolver object in. |
| SafeCanonicalizationMethods |
Hiermee haalt u de namen op van methoden waarvan canonicalisatiealgoritmen expliciet zijn toegestaan. |
| Signature |
Hiermee haalt u het Signature object van het huidige SignedXml object op. |
| SignatureFormatValidator |
Hiermee haalt u een gemachtigde op die wordt aangeroepen om de indeling (niet de cryptografische beveiliging) van een XML-handtekening te valideren. |
| SignatureLength |
Hiermee wordt de lengte van de handtekening voor het huidige SignedXml object opgehaald. |
| SignatureMethod |
Hiermee haalt u de handtekeningmethode van het huidige SignedXml object op. |
| SignatureValue |
Hiermee haalt u de handtekeningwaarde van het huidige SignedXml object op. |
| SignedInfo |
Hiermee haalt u het SignedInfo object van het huidige SignedXml object op. |
| SigningKey |
Hiermee wordt de asymmetrische algoritmesleutel opgehaald of ingesteld die wordt gebruikt voor het ondertekenen van een SignedXml object. |
| SigningKeyName |
Hiermee haalt u de naam op van de geïnstalleerde sleutel die moet worden gebruikt voor het ondertekenen van het SignedXml object. |
Methoden
| Name | Description |
|---|---|
| AddObject(DataObject) |
Hiermee voegt u een DataObject object toe aan de lijst met objecten die moeten worden ondertekend. |
| AddReference(Reference) |
Voegt een Reference object toe aan het object dat een digest-methode, digest-waarde en transformatie beschrijft die moet worden gebruikt voor het SignedXml maken van een digitale XML-handtekening. |
| CheckSignature() |
Bepaalt of de Signature eigenschap verifieert met behulp van de openbare sleutel in de handtekening. |
| CheckSignature(AsymmetricAlgorithm) |
Bepaalt of de Signature eigenschap verifieert voor de opgegeven sleutel. |
| CheckSignature(KeyedHashAlgorithm) |
Bepaalt of de Signature eigenschap verifieert voor het opgegeven MAC-algoritme (Message Authentication Code). |
| CheckSignature(X509Certificate2, Boolean) |
Bepaalt of de Signature eigenschap verifieert voor het opgegeven X509Certificate2 object en, optioneel, of het certificaat geldig is. |
| CheckSignatureReturningKey(AsymmetricAlgorithm) |
Bepaalt of de Signature eigenschap verifieert met behulp van de openbare sleutel in de handtekening. |
| ComputeSignature() |
Berekent een digitale XML-handtekening. |
| ComputeSignature(KeyedHashAlgorithm) |
Hiermee wordt een DIGITALE XML-handtekening berekend met behulp van het opgegeven MAC-algoritme (Message Authentication Code). |
| Equals(Object) |
Bepaalt of het opgegeven object gelijk is aan het huidige object. (Overgenomen van Object) |
| GetHashCode() |
Fungeert als de standaardhashfunctie. (Overgenomen van Object) |
| GetIdElement(XmlDocument, String) |
Retourneert het XmlElement object met de opgegeven id van het opgegeven XmlDocument object. |
| GetPublicKey() |
Retourneert de openbare sleutel van een handtekening. |
| GetType() |
Hiermee haalt u de Type huidige instantie op. (Overgenomen van Object) |
| GetXml() |
Retourneert de XML-weergave van een SignedXml object. |
| LoadXml(XmlElement) |
Hiermee wordt een SignedXml status van een XML-element geladen. |
| MemberwiseClone() |
Hiermee maakt u een ondiepe kopie van de huidige Object. (Overgenomen van Object) |
| ToString() |
Retourneert een tekenreeks die het huidige object vertegenwoordigt. (Overgenomen van Object) |