public
void
|
#
login(
)
Conducts the authentication process. Conducts the authentication process. Throws
NAuthenticationException if authentication was not successful
|
public
void
|
#
logout(
$clearIdentity = false
)
Logs out the user from the current session. Logs out the user from the current session. |
public
bool
|
#
isLoggedIn(
)
Is this user authenticated? Is this user authenticated? |
public
IIdentity
|
#
getIdentity(
)
Returns current user identity, if any. Returns current user identity, if any. |
public
void
|
#
setAuthenticationHandler(
IAuthenticator
$handler
)
Sets authentication handler. Sets authentication handler. Parameters$handler IAuthenticator |
public
IAuthenticator
|
#
getAuthenticationHandler(
)
Returns authentication handler. Returns authentication handler. |
public
void
|
#
setNamespace(
string
$namespace
)
Changes namespace; allows more users to share a session. Changes namespace; allows more users to share a session. Parameters$namespace string |
public
string
|
#
getNamespace(
)
Returns current namespace. Returns current namespace. |
public
array
|
#
getRoles(
)
Returns a list of roles that a user has been granted. Returns a list of roles that a user has been granted. |
public
bool
|
#
isInRole(
string
$role
)
Is a user in the specified role? Is a user in the specified role? Parameters$role string |
public
bool
|
#
isAllowed(
)
Has a user access to the Resource? Has a user access to the Resource? |
public
void
|
#
setAuthorizationHandler(
IAuthorizator
$handler
)
Sets authorization handler. Sets authorization handler. Parameters$handler IAuthorizator |
public
IAuthorizator
|
#
getAuthorizationHandler(
)
Returns current authorization handler. Returns current authorization handler. |