C# Class Foretagsplatsen.Api2.Saml.SamlSignedXml

SamlSignedXml - Class is used to sign xml, basically the when the ID is retreived the correct ID is used. without this, the id reference would not be valid.
Inheritance: System.Security.Cryptography.Xml.SignedXml
显示文件 Open project: foretagsplatsen/Foretagsplatsen-DotNet-API Class Usage Examples

Public Methods

Method Description
CreateSignature ( XmlDocument document, X509Certificate2 certificate, string referenceId, string referenceValue ) : XmlElement
GetIdElement ( XmlDocument document, string idValue ) : XmlElement
SamlSignedXml ( XmlDocument document, string referenceAttributeId ) : System.Security.Cryptography.X509Certificates
SamlSignedXml ( XmlElement element, string referenceAttributeId ) : System.Security.Cryptography.X509Certificates

Method Details

CreateSignature() public static method

public static CreateSignature ( XmlDocument document, X509Certificate2 certificate, string referenceId, string referenceValue ) : XmlElement
document System.Xml.XmlDocument
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
referenceId string
referenceValue string
return System.Xml.XmlElement

GetIdElement() public method

public GetIdElement ( XmlDocument document, string idValue ) : XmlElement
document System.Xml.XmlDocument
idValue string
return System.Xml.XmlElement

SamlSignedXml() public method

public SamlSignedXml ( XmlDocument document, string referenceAttributeId ) : System.Security.Cryptography.X509Certificates
document System.Xml.XmlDocument
referenceAttributeId string
return System.Security.Cryptography.X509Certificates

SamlSignedXml() public method

public SamlSignedXml ( XmlElement element, string referenceAttributeId ) : System.Security.Cryptography.X509Certificates
element System.Xml.XmlElement
referenceAttributeId string
return System.Security.Cryptography.X509Certificates