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

40 lines
1.6 KiB
C#

//-----------------------------------------------------------------------
// <copyright file="ClaimsAuthorizationManager.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace System.Security.Claims
{
using System.IdentityModel;
using System.IdentityModel.Configuration;
using System.Security.Claims;
using System.Xml;
/// <summary>
/// Defines the base implementation for a claims authorization manager.
/// </summary>
public class ClaimsAuthorizationManager : ICustomIdentityConfiguration
{
/// <summary>
/// When implemented in a derived class, this method will authorize the subject specified in the
/// context to perform the specified action on the specified resource.
/// </summary>
/// <param name="context"><see cref="AuthorizationContext"/> that encapsulates the subject, resource, and action.</param>
/// <returns>true if authorized, false otherwise.</returns>
public virtual bool CheckAccess(AuthorizationContext context)
{
return true;
}
/// <summary>
/// Load custom configuration from Xml
/// </summary>
/// <param name="nodelist">Custom configuration elements</param>
public virtual void LoadCustomConfiguration(XmlNodeList nodelist)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
}
}
}