C# 클래스 MvcTemplate.Components.Security.AuthorizationProvider

상속: IAuthorizationProvider
파일 보기 프로젝트 열기: NonFactors/MVC5.Template 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AllowsUnauthorized System.Boolean
GetAction String
GetArea String
GetAuthorizeAs AuthorizeAsAttribute
GetController String
GetControllerType System.Type
GetMethod System.Reflection.MethodInfo
GetRequiredPermission String
GetValidControllers IEnumerable
GetValidMethods IEnumerable

공개 메소드들

메소드 설명
AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
Refresh ( ) : void

비공개 메소드들

메소드 설명
AllowsUnauthorized ( Type controller, MethodInfo method ) : System.Boolean
GetAction ( MethodInfo method ) : String
GetArea ( Type type ) : String
GetAuthorizeAs ( MemberInfo action ) : AuthorizeAsAttribute
GetController ( Type type ) : String
GetControllerType ( String area, String controller ) : Type
GetMethod ( Type controller, String action ) : MethodInfo
GetRequiredPermission ( Type type, MethodInfo method ) : String
GetValidControllers ( Assembly assembly ) : IEnumerable
GetValidMethods ( Type controller ) : IEnumerable

메소드 상세

AuthorizationProvider() 공개 메소드

public AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
controllersAssembly System.Reflection.Assembly
리턴 MvcTemplate.Components.Mvc

IsAuthorizedFor() 공개 메소드

public IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
accountId System.Int32
area String
controller String
action String
리턴 System.Boolean

Refresh() 공개 메소드

public Refresh ( ) : void
리턴 void