Class NSimpleAuthenticator


Trivial implementation of IAuthenticator.

NObject
   |
   --NSimpleAuthenticator

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Security/SimpleAuthenticator.php (line 39)
Public Method Summary
NSimpleAuthenticator
__construct ($userlist)
IIdentity
authenticate ($credentials)
Performs an authentication against e.g. database.
Methods Inherited From NObject
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 48

__construct

public NSimpleAuthenticator __construct ($userlist)

Input
$userlist list of usernames and passwords
Output
NSimpleAuthenticator  

line 63

authenticate

public IIdentity authenticate ($credentials)

Performs an authentication against e.g. database.

and returns IIdentity on success or throws NAuthenticationException

Implementation of:

Input
$credentials
Output
IIdentity  
Throws
throws NAuthenticationException