Class SubjectConfirmation
Represents a subject confirmation.
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(string)
Initializes a new instance of the SubjectConfirmation class.
Declaration
public SubjectConfirmation(string method)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | method | The method.  | 
      
See Also
SubjectConfirmation(string, BaseID)
Initializes a new instance of the SubjectConfirmation class.
Declaration
public SubjectConfirmation(string method, BaseID baseID)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | method | The method.  | 
      
| BaseID | baseID | The base identifier.  | 
      
See Also
SubjectConfirmation(string, EncryptedID)
Initializes a new instance of the SubjectConfirmation class.
Declaration
public SubjectConfirmation(string method, EncryptedID encryptedID)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | method | The method.  | 
      
| EncryptedID | encryptedID | The encrypted identifier.  | 
      
See Also
SubjectConfirmation(string, NameID)
Initializes a new instance of the SubjectConfirmation class.
Declaration
public SubjectConfirmation(string method, NameID nameID)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | method | The method.  | 
      
| NameID | nameID | The name identifier.  | 
      
See Also
SubjectConfirmation(XmlElement)
Initializes a new instance of the SubjectConfirmation class from XML.
Declaration
public SubjectConfirmation(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| 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 | 
|---|---|
| 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 | 
|---|---|---|
| XmlElement | xmlElement | The XML to test.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | 
  | 
      
ToXml(XmlDocument)
Serializes the subject confirmation to XML.
Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlDocument | xmlDocument | The owning XML document.  | 
      
Returns
| Type | Description | 
|---|---|
| XmlElement | The subject confirmation as XML.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLSerializationException | Thrown when the XML serialization fails.  |