includes/class/Authentication.class.php![View Source](../images/icons/view_source.png)
Broker
- Package
- Broker
\Broker\Authentication
Package: Broker![](../images/icons/arrow_right.png)
![](../images/icons/arrow_right.png)
![](../images/icons/arrow_right.png)
![](../images/icons/arrow_right.png)
![](../images/icons/arrow_right.png)
Handle authentication based on IP, key or login/password
Properties
Methods
![](../images/icons/arrow_right.png)
![method method](../images/icons/method.png)
__construct(object $configuration) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$configuration | object |
![](../images/icons/arrow_right.png)
![method method](../images/icons/method.png)
accessWithAdminPrivileges() : boolean
Check for access with admin privileges
Returns
Type | Description |
---|---|
boolean |
![](../images/icons/arrow_right.png)
![method method](../images/icons/method.png)
login(string $login, string $name, boolean $admin) : void
Login
Parameters
Name | Type | Description |
---|---|---|
$login | string | |
$name | string | |
$admin | boolean |
![](../images/icons/arrow_right.png)
![method method](../images/icons/method.png)
validateIP(string $ip) : boolean
Validate IP
Parameters
Returns
Name | Type | Description |
---|---|---|
$ip | string |
Type | Description |
---|---|
boolean |
![](../images/icons/arrow_right.png)
![method method](../images/icons/method.png)
validateKey(string $key) : boolean
Validate key
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
boolean |