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
xmlElementXmlElementThe signed XML element.
Returns
- byte[]
The X.509 certificate bytes or
nullif none.
GetDigestAlgorithm(XmlElement)
Gets the digest algorithm.
public static string GetDigestAlgorithm(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe signed XML element.
Returns
- string
The XML digest algorithm or
nullif none.
GetSignatureAlgorithm(XmlElement)
Gets the signature algorithm.
public static string GetSignatureAlgorithm(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe signed XML element.
Returns
- string
The XML signature algorithm or
nullif none.
GetSignatureElement(XmlElement)
Gets the XML signature element.
public static XmlElement GetSignatureElement(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe signed XML element.
Returns
- XmlElement
The XML signature element or
nullif none.
IsSigned(XmlElement)
Indicates whether the XML is signed.
public static bool IsSigned(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML element.
Returns
- bool
trueif the XML is signed; otherwisefalse.