includes/class/Authentication.class.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Broker
Package
Broker  

\Broker\Authentication

Package: Broker
Handle authentication based on IP, key or login/password

Properties

>VPropertyprivateboolean $accessBasedOnIP
Access based on IP
Details
Type
boolean
>VPropertyprivateboolean $accessBasedOnKey
Access based on key
Details
Type
boolean
>VPropertyprivateboolean $accessBasedOnLogin
Access based on login
Details
Type
boolean
>VPropertyprivateboolean $accessWithAdminPrivileges
Access with admin privileges
Details
Type
boolean
>VPropertyprivateobject $configuration
Configuration
Details
Type
object

Methods

methodpublic__construct(object $configuration) : void

Constructor

Parameters
NameTypeDescription
$configurationobject
methodpublicaccess() : boolean

Check for access

Returns
TypeDescription
boolean
methodpublicaccessBasedOnIP() : boolean

Check for access based on IP

Returns
TypeDescription
boolean
methodpublicaccessBasedOnKey() : boolean

Check for access based on key

Returns
TypeDescription
boolean
methodpublicaccessBasedOnLogin() : boolean

Check for access based on login

Returns
TypeDescription
boolean
methodpublicaccessWithAdminPrivileges() : boolean

Check for access with admin privileges

Returns
TypeDescription
boolean
methodpublicgetIP() : string

Get ip

Returns
TypeDescription
string
methodpublicgetLogin() : string | boolean

Get login

Returns
TypeDescription
string | boolean
methodpublicgetName() : string | boolean

Get name

Returns
TypeDescription
string | boolean
methodprivatelogin(string $login, string $name, boolean $admin) : void

Login

Parameters
NameTypeDescription
$loginstring
$namestring
$adminboolean
methodpubliclogout() : void

Logout

methodpublicreset() : void

Reset

methodprivatevalidateIP(string $ip) : boolean

Validate IP

Parameters
NameTypeDescription
$ipstring
Returns
TypeDescription
boolean
methodprivatevalidateKey(string $key) : boolean

Validate key

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
boolean
methodpublicvalidateLogin(string $login, string $password) : boolean

Validate login

Parameters
NameTypeDescription
$loginstring
$passwordstring
Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.8.5.