Table of Contents

Class XmlSecurityUtility

Namespace
ComponentSpace.Saml2.XmlSecurity
Assembly
ComponentSpace.Saml2.dll

XML Security utility class.

public static class XmlSecurityUtility
Inheritance
XmlSecurityUtility
Inherited Members

Methods

GetCertificate(XmlElement)

Gets the X.509 certificate embedded in the signature.

public static byte[] GetCertificate(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The signed XML element.

Returns

byte[]

The X.509 certificate bytes or null if none.

GetDigestAlgorithm(XmlElement)

Gets the digest algorithm.

public static string GetDigestAlgorithm(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The signed XML element.

Returns

string

The XML digest algorithm or null if none.

GetSignatureAlgorithm(XmlElement)

Gets the signature algorithm.

public static string GetSignatureAlgorithm(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The signed XML element.

Returns

string

The XML signature algorithm or null if none.

GetSignatureElement(XmlElement)

Gets the XML signature element.

public static XmlElement GetSignatureElement(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The signed XML element.

Returns

XmlElement

The XML signature element or null if none.

IsSigned(XmlElement)

Indicates whether the XML is signed.

public static bool IsSigned(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML element.

Returns

bool

true if the XML is signed; otherwise false.