C# Class Adf.Base.Authorization.AllAuthorizationProvider

Represents an Authorization service which will not allow any user to login to the system.
Inheritance: IAuthorizationProvider
Afficher le fichier Open project: NLADP/ADF

Méthodes publiques

Méthode Description
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.

Method Details

IsAllowed() public méthode

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).
Résultat bool

IsAllowed() public méthode

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).
Résultat bool

IsInRole() public méthode

Checks whether the current user belongs to a certain role.
public IsInRole ( string role ) : bool
role string Role name to check for.
Résultat bool

Login() public méthode

Tries to log in using user credential.
public Login ( string name, string password ) : LoginResult
name string Login name.
password string Password (if required).
Résultat Adf.Core.Authorization.LoginResult

Logout() public méthode

Logs out the current user. Here no action is taken.
public Logout ( ) : void
Résultat void