Table of Contents

Class AuthnQuery

Namespace
ComponentSpace.Saml2.Protocols
Assembly
ComponentSpace.Saml2.dll

Represents an authentication query.

public class AuthnQuery : SubjectQueryAbstractType
Inheritance
AuthnQuery
Inherited Members

Remarks

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

Constructors

AuthnQuery()

Initializes a new instance of the AuthnQuery class.

public AuthnQuery()

AuthnQuery(XmlElement)

Initializes a new instance of the AuthnQuery class from XML.

public AuthnQuery(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The authentication query XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

RequestedAuthnContext

Gets or sets the requested authentication context.

public RequestedAuthnContext RequestedAuthnContext { get; set; }

Property Value

RequestedAuthnContext

The session index.

SessionIndex

Gets or sets the session index.

public string SessionIndex { get; set; }

Property Value

string

The session index.

Methods

IsValid(XmlElement)

Indicates whether the XML is an authentication query.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an authentication query; otherwise false.

ToXml(XmlDocument)

Serializes the authentication query to XML.

public override XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The authentication query as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.