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




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

__construct(object $configuration) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $configuration | object |

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

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

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

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