Class XmlSecurityUtility
XML Security utility class.
Inherited Members
Namespace: ComponentSpace.Saml2.XmlSecurity
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class XmlSecurityUtility
Methods
GetCertificate(XmlElement)
Gets the X.509 certificate embedded in the signature.
Declaration
public static byte[] GetCertificate(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
XmlElement | xmlElement | The signed XML element. |
Returns
Type | Description |
---|---|
byte[] | The X.509 certificate bytes or |
GetDigestAlgorithm(XmlElement)
Gets the digest algorithm.
Declaration
public static string GetDigestAlgorithm(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
XmlElement | xmlElement | The signed XML element. |
Returns
Type | Description |
---|---|
string | The XML digest algorithm or |
GetSignatureAlgorithm(XmlElement)
Gets the signature algorithm.
Declaration
public static string GetSignatureAlgorithm(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
XmlElement | xmlElement | The signed XML element. |
Returns
Type | Description |
---|---|
string | The XML signature algorithm or |
GetSignatureElement(XmlElement)
Gets the XML signature element.
Declaration
public static XmlElement GetSignatureElement(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
XmlElement | xmlElement | The signed XML element. |
Returns
Type | Description |
---|---|
XmlElement | The XML signature element or |
IsSigned(XmlElement)
Indicates whether the XML is signed.
Declaration
public static bool IsSigned(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
XmlElement | xmlElement | The XML element. |
Returns
Type | Description |
---|---|
bool |
|