1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
//-----------------------------------------------------------------------
// <copyright file="Saml2ProxyRestriction.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace System.IdentityModel.Tokens
{
using System;
using System.Collections.ObjectModel;
/// <summary>
/// Represents the ProxyRestriction element specified in [Saml2Core, 2.5.1.6].
/// </summary>
public class Saml2ProxyRestriction
{
private Collection<Uri> audiences = new AbsoluteUriCollection();
private int? count;
/// <summary>
/// Initializes an instance of <see cref="Saml2ProxyRestriction"/>.
/// </summary>
public Saml2ProxyRestriction()
{
}
/// <summary>
/// Gets the set of audiences to whom the asserting party permits
/// new assertions to be issued on the basis of this assertion.
/// </summary>
public Collection<Uri> Audiences
{
get { return this.audiences; }
}
/// <summary>
/// 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.
/// </summary>
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;
}
}
}
}
|