//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System; using System.Collections.ObjectModel; /// /// Represents the ProxyRestriction element specified in [Saml2Core, 2.5.1.6]. /// public class Saml2ProxyRestriction { private Collection audiences = new AbsoluteUriCollection(); private int? count; /// /// Initializes an instance of . /// public Saml2ProxyRestriction() { } /// /// Gets the set of audiences to whom the asserting party permits /// new assertions to be issued on the basis of this assertion. /// public Collection Audiences { get { return this.audiences; } } /// /// Gets or sets the maximum number of indirections that the asserting party /// permits to exist between this assertion and an assertion which has /// ultimately been issued on the basis of it. /// public int? Count { get { return this.count; } set { if (null != value) { if (value.Value < 0) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SR.GetString(SR.ID0002))); } } this.count = value; } } } }