//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System; /// /// Represents the SubjectLocality element specified in [Saml2Core, 2.7.2.1]. /// /// /// This element is entirely advisory, since both of these fields are quite /// easily "spoofed". [Saml2Core, 2.7.2.1] /// public class Saml2SubjectLocality { private string address; private string dnsName; /// /// Initializes an instance of . /// public Saml2SubjectLocality() { } /// /// Initializes an instance of from an address and DNS name. /// /// A indicating the address. /// A indicating the DNS name. public Saml2SubjectLocality(string address, string dnsName) { this.Address = address; this.DnsName = dnsName; } /// /// Gets or sets the network address of the system from which the principal identified /// by the subject was authenticated. [Saml2Core, 2.7.2.1] /// public string Address { get { return this.address; } set { this.address = XmlUtil.NormalizeEmptyString(value); } } /// /// Gets or sets the DNS name of the system from which the principal identified by the /// subject was authenticated. [Saml2Core, 2.7.2.1] /// public string DnsName { get { return this.dnsName; } set { this.dnsName = XmlUtil.NormalizeEmptyString(value); } } } }