C# Класс Adf.Base.Authorization.AllAuthorizationProvider

Represents an Authorization service which will not allow any user to login to the system.
Наследование: IAuthorizationProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
IsAllowed ( IAction action ) : bool

Checks whether the current user is allowed to performs the IAction.

IsAllowed ( string subject, IAction action ) : bool

Checks whether the current user is allowed to performs the IAction.

IsInRole ( string role ) : bool

Checks whether the current user belongs to a certain role.

Login ( string name, string password ) : LoginResult

Tries to log in using user credential.

Logout ( ) : void

Logs out the current user. Here no action is taken.

Описание методов

IsAllowed() публичный Метод

Checks whether the current user is allowed to performs the IAction.
public IsAllowed ( IAction action ) : bool
action IAction Any action that implements IAction (such as ApplicationTask).
Результат bool

IsAllowed() публичный Метод

Checks whether the current user is allowed to performs the IAction.
public IsAllowed ( string subject, IAction action ) : bool
subject string The subject for which authentication is requested.
action IAction Any action that implements IAction (such as ApplicationTask).
Результат bool

IsInRole() публичный Метод

Checks whether the current user belongs to a certain role.
public IsInRole ( string role ) : bool
role string Role name to check for.
Результат bool

Login() публичный Метод

Tries to log in using user credential.
public Login ( string name, string password ) : LoginResult
name string Login name.
password string Password (if required).
Результат Adf.Core.Authorization.LoginResult

Logout() публичный Метод

Logs out the current user. Here no action is taken.
public Logout ( ) : void
Результат void