Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NIdentity
  • NPermission
  • NSimpleAuthenticator

Interfaces

  • IAuthenticator
  • IAuthorizator
  • IIdentity
  • IPermissionAssertion
  • IResource
  • IRole

Exceptions

  • NAuthenticationException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NSimpleAuthenticator

Trivial implementation of IAuthenticator.

NObject
Extended by NSimpleAuthenticator implements IAuthenticator
Package: Nette\Security
Author: David Grudl
Located at Security/SimpleAuthenticator.php
Methods summary
public
# __construct( array $userlist )

Parameters

$userlist
array
list of usernames and passwords
public IIdentity
# authenticate( array $credentials )

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

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

Parameters

$credentials
array

Returns

IIdentity

Throws

NAuthenticationException

Implementation of

IAuthenticator::authenticate
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from IAuthenticator
FAILURE, IDENTITY_NOT_FOUND, INVALID_CREDENTIAL, NOT_APPROVED, PASSWORD, USERNAME
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0