Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

54 lines
1.6 KiB
C#

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