메소드 | 설명 | |
---|---|---|
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 ) : |
Tries to log in using user credential.
|
|
Logout ( ) : void |
Logs out the current user. Here no action is taken.
|
public IsAllowed ( IAction action ) : bool | ||
action | IAction | Any action that implements IAction (such as ApplicationTask). |
리턴 | bool |
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 |
public IsInRole ( string role ) : bool | ||
role | string | Role name to check for. |
리턴 | bool |
public Login ( string name, string password ) : |
||
name | string | Login name. |
password | string | Password (if required). |
리턴 |