Index
A
- AuthenticationException — Class in namespace Nette\Security
Authentication exception.
- IAuthenticator::authenticate() — Method in class IAuthenticator
Performs an authentication against e.g. database.
- Permission::addRole() — Method in class Permission
Adds a Role to the list. The most recently added parent takes precedence over parents that were previously added.
- Permission::addResource() — Method in class Permission
Adds a Resource having an identifier unique to the list.
- Permission::allow() — Method in class Permission
Allows one or more Roles access to [certain $privileges upon] the specified Resource(s).
- SimpleAuthenticator::authenticate() — Method in class SimpleAuthenticator
Performs an authentication against e.g. database.
- $ User#authenticatedRole — Property in class User
- $ User#authenticator — Property in class User
- $ User#authorizator — Property in class User
D
- $ SecurityExtension#defaults — Property in class SecurityExtension
- $ Identity#data — Property in class Identity
- Permission::deny() — Method in class Permission
Denies one or more Roles access to [certain $privileges upon] the specified Resource(s).
G
- UserPanel::getTab() — Method in class UserPanel
Renders tab.
- UserPanel::getPanel() — Method in class UserPanel
Renders panel.
- IIdentity::getId() — Method in class IIdentity
Returns the ID of user.
- IIdentity::getRoles() — Method in class IIdentity
Returns a list of roles that the user is a member of.
- IResource::getResourceId() — Method in class IResource
Returns a string identifier of the Resource.
- IRole::getRoleId() — Method in class IRole
Returns a string identifier of the Role.
- IUserStorage::getIdentity() — Method in class IUserStorage
Returns current user identity, if any.
- IUserStorage::getLogoutReason() — Method in class IUserStorage
Why was user logged out?
- Identity::getId() — Method in class Identity
Returns the ID of user.
- Identity::getRoles() — Method in class Identity
Returns a list of roles that the user is a member of.
- Identity::getData() — Method in class Identity
Returns a user data.
- Permission::getRoles() — Method in class Permission
Returns all Roles.
- Permission::getRoleParents() — Method in class Permission
Returns existing Role's parents ordered by ascending priority.
- Permission::getResources() — Method in class Permission
Returns all Resources.
- Permission::getQueriedRole() — Method in class Permission
Returns real currently queried Role. Use by assertion.
- Permission::getQueriedResource() — Method in class Permission
Returns real currently queried Resource. Use by assertion.
- $ User#guestRole — Property in class User
- User::getStorage() — Method in class User
- User::getIdentity() — Method in class User
Returns current user identity, if any.
- User::getId() — Method in class User
Returns current user ID, if any.
- User::getAuthenticator() — Method in class User
Returns authentication handler.
- User::getLogoutReason() — Method in class User
Why was user logged out?
- User::getRoles() — Method in class User
Returns a list of effective roles that a user has been granted.
- User::getAuthorizator() — Method in class User
Returns current authorization handler.
H
- Passwords::hash() — Method in class Passwords
Computes salted password hash.
- Permission::hasRole() — Method in class Permission
Returns true if the Role exists in the list.
- Permission::hasResource() — Method in class Permission
Returns true if the Resource exists in the list.
I
- IAuthenticator — Class in namespace Nette\Security
Performs authentication.
- IAuthorizator — Class in namespace Nette\Security
Authorizator checks if a given role has authorization to access a given resource.
- IAuthorizator::isAllowed() — Method in class IAuthorizator
Performs a role-based authorization.
- IIdentity — Class in namespace Nette\Security
Represents the user of application.
- IResource — Class in namespace Nette\Security
Represents resource, an object to which access is controlled.
- IRole — Class in namespace Nette\Security
Represents role, an object that may request access to an IResource.
- IUserStorage — Class in namespace Nette\Security
Interface for persistent storage for user object data.
- IUserStorage::isAuthenticated() — Method in class IUserStorage
Is this user authenticated?
- Identity — Class in namespace Nette\Security
Default implementation of IIdentity.
- $ Identity#id — Property in class Identity
- Permission::isAllowed() — Method in class Permission
Returns true if and only if the Role has access to [certain $privileges upon] the Resource.
- $ User#identity — Property in class User
- $ User#id — Property in class User
- User::isLoggedIn() — Method in class User
Is this user authenticated?
- User::isInRole() — Method in class User
Is a user in the specified effective role?
- User::isAllowed() — Method in class User
Has a user effective access to the Resource? If $resource is null, then the query applies to all resources.
L
- SecurityExtension::loadConfiguration() — Method in class SecurityExtension
- $ User#loggedIn — Property in class User
- $ User#logoutReason — Property in class User
- User::login() — Method in class User
Conducts the authentication process. Parameters are optional.
- User::logout() — Method in class User
Logs out the user from the current session.
N
- Passwords::needsRehash() — Method in class Passwords
Checks if the given hash matches the options.
O
- $ User#onLoggedIn — Property in class User
- $ User#onLoggedOut — Property in class User
P
- Passwords — Class in namespace Nette\Security
Passwords tools.
- Permission — Class in namespace Nette\Security
Access control list (ACL) functionality and privileges management.
R
- $ Identity#roles — Property in class Identity
- Permission::roleInheritsFrom() — Method in class Permission
Returns true if $role inherits from $inherit. If $onlyParents is true, then $role must inherit directly from $inherit.
- Permission::removeRole() — Method in class Permission
Removes the Role from the list.
- Permission::removeAllRoles() — Method in class Permission
Removes all Roles from the list.
- Permission::resourceInheritsFrom() — Method in class Permission
Returns true if $resource inherits from $inherit. If $onlyParents is true, then $resource must inherit directly from $inherit.
- Permission::removeResource() — Method in class Permission
Removes a Resource and all of its children.
- Permission::removeAllResources() — Method in class Permission
Removes all Resources.
- Permission::removeAllow() — Method in class Permission
Removes "allow" permissions from the list in the context of the given Roles, Resources, and privileges.
- Permission::removeDeny() — Method in class Permission
Removes "deny" restrictions from the list in the context of the given Roles, Resources, and privileges.
- $ User#roles — Property in class User
S
- SecurityExtension — Class in namespace Nette\Bridges\SecurityDI
Security extension for Nette DI.
- IUserStorage::setAuthenticated() — Method in class IUserStorage
Sets the authenticated status of this user.
- IUserStorage::setIdentity() — Method in class IUserStorage
Sets the user identity.
- IUserStorage::setExpiration() — Method in class IUserStorage
Enables log out from the persistent storage after inactivity.
- Identity::setId() — Method in class Identity
Sets the ID of user.
- Identity::setRoles() — Method in class Identity
Sets a list of roles that the user is a member of.
- Permission::setRule() — Method in class Permission
Performs operations on Access Control List rules.
- SimpleAuthenticator — Class in namespace Nette\Security
Trivial implementation of IAuthenticator.
- User::setAuthenticator() — Method in class User
Sets authentication handler.
- User::setExpiration() — Method in class User
Enables log out after inactivity.
- User::setAuthorizator() — Method in class User
Sets authorization handler.
U
- UserPanel — Class in namespace Nette\Bridges\SecurityTracy
User panel for Debugger Bar.
- User — Class in namespace Nette\Security
User authentication and authorization.
V
- Passwords::verify() — Method in class Passwords
Verifies that a password matches a hash.
_
- SecurityExtension::__construct() — Method in class SecurityExtension
- UserPanel::__construct() — Method in class UserPanel
- Identity::__construct() — Method in class Identity
- Identity::__set() — Method in class Identity
Sets user data value.
- Identity::__get() — Method in class Identity
Returns user data value.
- Identity::__isset() — Method in class Identity
- SimpleAuthenticator::__construct() — Method in class SimpleAuthenticator
- User::__construct() — Method in class User