|
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using SecuredLibrary.BusinessObjects;
using SecuredLibrary.Common.Exceptions;
namespace SecuredLibrary.SecurityModel.Interfaces
{
public interface ISecurityManager
{
/// <summary>
/// Indicates if CurrentUser is permited to call SecuredMethod
/// </summary>
/// <param name="SecuredMethod"></param>
/// <param name="CurrentUser"></param>
/// <returns></returns>
bool IsPermited(MethodBase SecuredMethod, User CurrentUser);
/// <summary>
/// Indicates if CurrentUser is permited to call SecuredMethod.
/// </summary>
/// <param name="SecuredMethod"></param>
/// <param name="CurrentUser"></param>
/// <param name="ThrowException">If set to true throws exception if user is not authenticated.</param>
/// <returns></returns>
/// <exception cref="UserNotAuthorizedException"></exception>
bool IsPermited(MethodBase SecuredMethod, User CurrentUser, bool ThrowException);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.