//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ using System; using System.Collections.ObjectModel; using System.IdentityModel.Selectors; namespace System.IdentityModel.Tokens { /// /// Defines settings for a AudienceRestriction verification. /// public class AudienceRestriction { AudienceUriMode _audienceMode = AudienceUriMode.Always; Collection _audience = new Collection(); /// /// Creates an instance of /// public AudienceRestriction() { } /// /// Creates an instance of /// /// Specifies the mode in which AudienceUri restriction is applied. public AudienceRestriction( AudienceUriMode audienceMode ) { _audienceMode = audienceMode; } /// /// Gets/Sets the mode in which Audience URI restriction is applied. /// public AudienceUriMode AudienceMode { get { return _audienceMode; } set { _audienceMode = value; } } /// /// Gets the list of Allowed Audience URIs. /// public Collection AllowedAudienceUris { get { return _audience; } } } }