Class EncryptedElementType
Represents the encrypted element type.
Inheritance
Inherited Members
Namespace: ComponentSpace.SAML2.Assertions
Assembly: ComponentSpace.Saml2.dll
Syntax
public class EncryptedElementType
  Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
EncryptedElementType()
Initializes a new instance of the EncryptedElementType class.
Declaration
public EncryptedElementType()
  EncryptedElementType(XmlElement)
Initializes a new instance of the EncryptedElementType class from XML.
Declaration
public EncryptedElementType(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The encrypted element XML.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLSerializationException | Thrown when the XML deserialization fails.  | 
      
EncryptedElementType(XmlElement, XmlNodeList)
Initializes a new instance of the EncryptedElementType class.
Declaration
public EncryptedElementType(XmlElement encryptedData, XmlNodeList encryptedKeys)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | encryptedData | The encrypted data.  | 
      
| XmlNodeList | encryptedKeys | The encrypted keys.  | 
      
Properties
EncryptedData
Gets or sets the encrypted data.
Declaration
public XmlElement EncryptedData { get; set; }
  Property Value
| Type | Description | 
|---|---|
| XmlElement | The encrypted data.  | 
      
EncryptedKeys
Gets or sets the encrypted keys.
Declaration
public XmlNodeList EncryptedKeys { get; set; }
  Property Value
| Type | Description | 
|---|---|
| XmlNodeList | The encrypted keys.  | 
      
Methods
GetCertificate(XmlElement)
Gets the X.509 certificate embedded in the encrypted XML or null if none.
Declaration
public static X509Certificate2 GetCertificate(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The encrypted XML.  | 
      
Returns
| Type | Description | 
|---|---|
| X509Certificate2 | The X.509 certificate embedded in the encrypted XML or   | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLEncryptionException | Thrown when the X.509 certificate retrieval fails.  | 
      
See Also
GetKeyInfo(XmlElement)
Gets the key info embedded in the encrypted XML or null if none.
Declaration
public static KeyInfo GetKeyInfo(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The encrypted XML.  | 
      
Returns
| Type | Description | 
|---|---|
| KeyInfo | The key info embedded in the encrypted XML or   | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLEncryptionException | Thrown when the key info retrieval fails.  | 
      
See Also
ToXml(XmlElement)
Serializes the encrypted element to XML.
Declaration
public void ToXml(XmlElement xmlElement)
  Parameters
| Type | Name | Description | 
|---|---|---|
| XmlElement | xmlElement | The owning XML element.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLSerializationException | Thrown when the XML serialization fails.  |