Class Subject
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents a subject.
public class Subject
- Inheritance
-
Subject
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
Subject()
Initializes a new instance of the Subject class.
public Subject()
Subject(XmlElement)
Initializes a new instance of the Subject class from XML.
public Subject(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe subject XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
BaseID
Gets or sets the base identifier.
public BaseID BaseID { get; set; }
Property Value
- BaseID
The base identifier.
EncryptedID
Gets or sets the encrypted identifier.
public EncryptedID EncryptedID { get; set; }
Property Value
- EncryptedID
The encrypted identifier.
NameID
Gets or sets the name identifier.
public NameID NameID { get; set; }
Property Value
- NameID
The name identifier.
SubjectConfirmations
Gets or sets the subject confirmations.
public IList<SubjectConfirmation> SubjectConfirmations { get; set; }
Property Value
- IList<SubjectConfirmation>
The subject confirmations.
Methods
IsValid(XmlElement)
Indicates whether the XML is a subject.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is a subject; otherwisefalse.
ToXml(XmlDocument)
Serializes the subject to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The subject as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.