Interface IUser
User authentication and authorization.
Methods summary
public
|
#
login( string $username, string $password, mixed $extra = NULL )
Conducts the authentication process.
Conducts the authentication process.
Parameters
- $username
string
- $password
string
- $extra
mixed
Throws
|
public
|
#
logout( $clearIdentity = FALSE )
Logs out the user from the current session.
Logs out the user from the current session.
|
public
boolean
|
#
isLoggedIn( )
Is this user authenticated?
Is this user authenticated?
Returns
boolean
|
public
Nette\Security\IIdentity
|
#
getIdentity( )
Returns current user identity, if any.
Returns current user identity, if any.
Returns
|
public
|
|
public
Nette\Security\IAuthenticator
|
|
public
|
#
setNamespace( string $namespace )
Changes namespace; allows more users to share a session.
Changes namespace; allows more users to share a session.
Parameters
|
public
string
|
#
getNamespace( )
Returns current namespace.
Returns current namespace.
Returns
string
|
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.
Returns
array
|
public
boolean
|
#
isInRole( string $role )
Is a user in the specified role?
Is a user in the specified role?
Parameters
Returns
boolean
|
public
boolean
|
#
isAllowed( )
Has a user access to the Resource?
Has a user access to the Resource?
Returns
boolean
|
public
|
|
public
Nette\Security\IAuthorizator
|
|