A

AuthenticationExceptionClass 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#authenticatedRoleProperty in class User
$ User#authenticatorProperty in class User
$ User#authorizatorProperty in class User

D

$ SecurityExtension#defaultsProperty in class SecurityExtension
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#guestRoleProperty 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

IAuthenticatorClass in namespace Nette\Security

Performs authentication.

IAuthorizatorClass 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.

IIdentityClass in namespace Nette\Security

Represents the user of application.

IResourceClass in namespace Nette\Security

Represents resource, an object to which access is controlled.

IRoleClass in namespace Nette\Security

Represents role, an object that may request access to an IResource.

IUserStorageClass in namespace Nette\Security

Interface for persistent storage for user object data.

IUserStorage::isAuthenticated() — Method in class IUserStorage

Is this user authenticated?

IdentityClass in namespace Nette\Security

Default implementation of IIdentity.

$ Identity#idProperty 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#identityProperty in class User
$ User#idProperty 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#loggedInProperty in class User
$ User#logoutReasonProperty 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#onLoggedInProperty in class User
$ User#onLoggedOutProperty in class User

P

PasswordsClass in namespace Nette\Security

Passwords tools. Requires PHP >= 5.3.7.

PermissionClass in namespace Nette\Security

Access control list (ACL) functionality and privileges management.

R

$ Identity#rolesProperty 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#rolesProperty in class User

S

SecurityExtensionClass 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.

SimpleAuthenticatorClass 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

UserPanelClass in namespace Nette\Bridges\SecurityTracy

User panel for Debugger Bar.

UserClass 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

Is property defined?

Identity::__unset() — Method in class Identity

Removes property.

SimpleAuthenticator::__construct() — Method in class SimpleAuthenticator
User::__construct() — Method in class User