Table of Contents

Class SubjectLocality

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

Represents a subject locality.

public class SubjectLocality
Inheritance
SubjectLocality
Inherited Members

Remarks

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

Constructors

SubjectLocality()

Initializes a new instance of the SubjectLocality class.

public SubjectLocality()

SubjectLocality(XmlElement)

Initializes a new instance of the SubjectLocality class from XML.

public SubjectLocality(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The subject locality XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Address

Gets or sets the address.

public string Address { get; set; }

Property Value

string

The address.

DnsName

Gets or sets the DNS name.

public string DnsName { get; set; }

Property Value

string

The DNS name.

Methods

IsValid(XmlElement)

Indicates whether the XML is a subject locality.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is a subject locality; otherwise false.

ToXml(XmlDocument)

Serializes the subject locality to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The subject locality as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.