Table of Contents

Class AuthnStatement

Namespace
ComponentSpace.Saml2.Assertions
Assembly
ComponentSpace.Saml2.dll

Represents an authentication statement.

public class AuthnStatement : IStatement
Inheritance
AuthnStatement
Implements
Inherited Members

Remarks

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

Constructors

AuthnStatement()

Initializes a new instance of the AuthnStatement class.

public AuthnStatement()

Remarks

The authentication statement is initialized with an authentication instant of now.

AuthnStatement(XmlElement)

Initializes a new instance of the AuthnStatement class from XML.

public AuthnStatement(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The authentication statement XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

AuthnContext

Gets or sets the authentication context.

public AuthnContext AuthnContext { get; set; }

Property Value

AuthnContext

The authentication context.

AuthnInstant

Gets or sets the authentication instant.

public DateTime? AuthnInstant { get; set; }

Property Value

DateTime?

The authentication instant as coordinated universal time (UTC).

SessionIndex

Gets or sets the session index.

public string SessionIndex { get; set; }

Property Value

string

The session index.

SessionNotOnOrAfter

Gets or sets the session not on or after time.

public DateTime? SessionNotOnOrAfter { get; set; }

Property Value

DateTime?

The session not on or after time as coordinated universal time (UTC).

SubjectLocality

Gets or sets the subject locality.

public SubjectLocality SubjectLocality { get; set; }

Property Value

SubjectLocality

The subject locality.

Methods

IsValid(XmlElement)

Indicates whether the XML is an authentication statement.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

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

ToXml(XmlDocument)

Serializes the authentication statement to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The authentication statement as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.