Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Identity
  • Passwords
  • Permission
  • SimpleAuthenticator
  • User

Interfaces

  • IAuthenticator
  • IAuthorizator
  • IIdentity
  • IResource
  • IRole
  • IUserStorage

Exceptions

  • AuthenticationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class SimpleAuthenticator

Trivial implementation of IAuthenticator.

Nette\Object
Extended by Nette\Security\SimpleAuthenticator implements Nette\Security\IAuthenticator
Namespace: Nette\Security
Located at Security/SimpleAuthenticator.php
Methods summary
public
# __construct( array $userlist, array $usersRoles = array() )

Parameters

$userlist
of pairs username => password
$usersRoles
of pairs username => role[]
public Nette\Security\IIdentity
# authenticate( array $credentials )

Performs an authentication against e.g. database. and returns IIdentity on success or throws AuthenticationException

Performs an authentication against e.g. database. and returns IIdentity on success or throws AuthenticationException

Returns

Nette\Security\IIdentity
IIdentity

Throws

Nette\Security\AuthenticationException
AuthenticationException

Implementation of

Nette\Security\IAuthenticator::authenticate()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from Nette\Security\IAuthenticator
FAILURE, IDENTITY_NOT_FOUND, INVALID_CREDENTIAL, NOT_APPROVED, PASSWORD, USERNAME
Magic properties inherited from Nette\Object
$reflection
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0