Basic
Less than 1 minute
Basic
class Basic implements \Hazaar\Warlock\Server\Auth\AuthenticatorProperties
authDB
private BTree $authDBMethods
__construct
Basic constructor.
public __construct(string $dbFile, bool $createDatabase): voidParameters
| Parameter | Type | Description |
|---|---|---|
$dbFile | string | the path to the authentication database file (BTree format) |
$createDatabase | bool |
authenticate
Authenticate a client using the provided username and password.
public authenticate(string $username, string $password, ?Client $client): boolParameters
| Parameter | Type | Description |
|---|---|---|
$username | string | the username provided by the client |
$password | string | the password provided by the client |
$client | Client |
exists
Check whether a user exists in the authentication database.
public exists(string $username): boolParameters
| Parameter | Type | Description |
|---|---|---|
$username | string | the username to look up |
addUser
public addUser(string $username, string $password): boolParameters
| Parameter | Type | Description |
|---|---|---|
$username | string | |
$password | string |
removeUser
public removeUser(string $username): boolParameters
| Parameter | Type | Description |
|---|---|---|
$username | string |
listUsers
public listUsers(): voidGenerated by Hazaar API Doc Generator on Fri, 05 Jun 2026 06:08:15 +0000