Namespaces

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

Classes

  • Identity
  • Permission
  • SimpleAuthenticator

Interfaces

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

Exceptions

  • AuthenticationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class SimpleAuthenticator

Trivial implementation of IAuthenticator.

Nette\Object
Extended by Nette\Security\SimpleAuthenticator implements Nette\Security\IAuthenticator
Namespace: 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 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

Parameters

$credentials
array

Returns

Nette\Security\IIdentity

Throws

Nette\Security\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
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0