Table of Contents

Class EncryptionMethod

Namespace
ComponentSpace.Saml2.Metadata
Assembly
ComponentSpace.Saml2.dll

Represents an encryption method.

public class EncryptionMethod : EncryptionMethodType
Inheritance
EncryptionMethod
Inherited Members

Remarks

Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Constructors

EncryptionMethod()

Initializes a new instance of the EncryptionMethod class.

public EncryptionMethod()

EncryptionMethod(XmlElement)

Initializes a new instance of the EncryptionMethod class from XML.

public EncryptionMethod(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The encryption method XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Methods

IsValid(XmlElement)

Indicates whether the XML is an encryption method.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an encryption method; otherwise false.

ToXml(XmlDocument)

Serializes the encryption method to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The encryption method type as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.