//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace System.Security.Claims
{
using System.IdentityModel;
using System.IdentityModel.Configuration;
using System.Security.Claims;
using System.Xml;
///
/// Defines the base implementation for a claims authorization manager.
///
public class ClaimsAuthorizationManager : ICustomIdentityConfiguration
{
///
/// 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.
///
/// that encapsulates the subject, resource, and action.
/// true if authorized, false otherwise.
public virtual bool CheckAccess(AuthorizationContext context)
{
return true;
}
///
/// Load custom configuration from Xml
///
/// Custom configuration elements
public virtual void LoadCustomConfiguration(XmlNodeList nodelist)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
}
}
}