|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.ObjectModel;
using System.IdentityModel.Policy;
using System.IdentityModel.Tokens;
namespace System.ServiceModel.Security
{
public class SecurityTokenSpecification
{
private ReadOnlyCollection<IAuthorizationPolicy> _tokenPolicies;
public SecurityTokenSpecification(SecurityToken token, ReadOnlyCollection<IAuthorizationPolicy> tokenPolicies)
{
SecurityToken = token;
_tokenPolicies = tokenPolicies ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenPolicies));
}
public SecurityToken SecurityToken { get; }
public ReadOnlyCollection<IAuthorizationPolicy> SecurityTokenPolicies
{
get { return _tokenPolicies; }
}
}
}
|