includes/class/Authentication.class.php
Broker
- Package
- Broker
\Broker\Authentication
Package: Broker




Handle authentication based on IP, key or login/password
Properties
Methods


__construct(\Broker\unknown $configuration) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$configuration | \Broker\unknown |


accessWithAdminPrivileges() : boolean
Check for access with admin privileges
Returns
Type | Description |
---|---|
boolean |


login(string $login, string $name, boolean $admin) : void
Login
Parameters
Name | Type | Description |
---|---|---|
$login | string | |
$name | string | |
$admin | boolean |


validateIP(string $ip) : boolean
Validate IP
Parameters
Returns
Name | Type | Description |
---|---|---|
$ip | string |
Type | Description |
---|---|
boolean |


validateKey(string $key) : boolean
Validate key
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
boolean |