Class Issuer
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents an issuer.
public class Issuer : NameIDType
- Inheritance
-
Issuer
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
Issuer()
Initializes a new instance of the Issuer class.
public Issuer()
Issuer(XmlElement)
Initializes a new instance of the Issuer class from XML.
public Issuer(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe issuer XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Methods
GetAnyIssuer(XmlElement)
Gets the issuer.
The issuer is a descendant element.
public static Issuer GetAnyIssuer(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML element containing the issuer as a descendant element.
Returns
- Issuer
The issuer or
nullif none.
GetAnyIssuerName(XmlElement)
Gets the issuer name.
The issuer is a descendant element.
public static string GetAnyIssuerName(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML element containing the issuer as a descendant element.
Returns
- string
The issuer name or
nullif none.
GetIssuer(XmlElement)
Gets the issuer.
The issuer is a child element.
public static Issuer GetIssuer(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML element containing the issuer as a child element.
Returns
- Issuer
The issuer or
nullif none.
GetIssuerName(XmlElement)
Gets the issuer name.
The issuer is a child element.
public static string GetIssuerName(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML element containing the issuer as a child element.
Returns
- string
The issuer name or
nullif none.
IsValid(XmlElement)
Indicates whether the XML is an issuer.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an issuer; otherwisefalse.
ToXml(XmlDocument)
Serializes the issuer to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The issuer as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.