Class SubjectConfirmation
Represents a subject confirmation.
Inheritance
Inherited Members
Namespace: ComponentSpace.Saml2.Assertions
Assembly: ComponentSpace.Saml2.dll
Syntax
public class SubjectConfirmation
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
SubjectConfirmation()
Initializes a new instance of the SubjectConfirmation
class.
Declaration
public SubjectConfirmation()
SubjectConfirmation(XmlElement)
Initializes a new instance of the SubjectConfirmation
class from XML.
Declaration
public SubjectConfirmation(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The subject confirmation XML. |
Exceptions
Type | Condition |
---|---|
SamlSerializationException | Thrown when the XML deserialization fails. |
Properties
BaseID
Gets or sets the base identifier.
Declaration
public BaseID BaseID { get; set; }
Property Value
Type | Description |
---|---|
BaseID | The base identifier. |
EncryptedID
Gets or sets the encrypted identifier.
Declaration
public EncryptedID EncryptedID { get; set; }
Property Value
Type | Description |
---|---|
EncryptedID | The encrypted identifier. |
Method
Gets or sets the method.
Declaration
public string Method { get; set; }
Property Value
Type | Description |
---|---|
System.String | The method. |
See Also
NameID
Gets or sets the name identifier.
Declaration
public NameID NameID { get; set; }
Property Value
Type | Description |
---|---|
NameID | The name identifier. |
SubjectConfirmationData
Gets or sets the subject confirmation data.
Declaration
public SubjectConfirmationData SubjectConfirmationData { get; set; }
Property Value
Type | Description |
---|---|
SubjectConfirmationData | The subject confirmation data. |
Methods
IsValid(XmlElement)
Indicates whether the XML is a subject confirmation.
Declaration
public static bool IsValid(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The XML to test. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ToXml(XmlDocument)
Serializes the subject confirmation to XML.
Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xmlDocument | The owning XML document. |
Returns
Type | Description |
---|---|
System.Xml.XmlElement | The subject confirmation as XML. |
Exceptions
Type | Condition |
---|---|
SamlSerializationException | Thrown when the XML serialization fails. |