Property | Type | Description | |
---|---|---|---|
$_capabilities | array | An array of capabilities, so that the driver can report which operations it supports and which it doesn't. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
addUser ( string $userId, array $credentials ) | Add a set of authentication credentials. | |
exists ( string $userId ) : boolean | Checks if a userId exists in the system. | |
listUsers ( boolean $sort = false ) : array | Lists all users in the system. | |
removeUser ( string $userId ) | Delete a set of authentication credentials. | |
resetPassword ( string $userId ) : string | Resets a user's password. Used for example when the user does not remember the existing password. | |
updateUser ( string $oldId, string $newId, array $credentials ) | Update a set of authentication credentials. |
Method | Description | |
---|---|---|
_authenticate ( string $userId, array $credentials ) | Find out if a set of login credentials are valid. | |
_getPassword ( string $userId ) : string | Fetch $userId's current password - needed for the salt with some encryption schemes when doing authentication or updates. |
public __construct ( array $params = [] ) | ||
$params | array | Configuration parameters: - query_auth: (string) Authenticate the user. ('\L' & '\P') - query_add: (string) Add user. ('\L' & '\P') - query_getpw: (string) Get one user's password. ('\L') - query_update: (string) Update user. ('\O', '\L' & '\P') - query_resetpassword: (string) Reset password. ('\L', & '\P') - query_remove: (string) Remove user. ('\L') - query_list: (string) List user. - query_exists: (string) Check for existance of user. ('\L') |
protected _authenticate ( string $userId, array $credentials ) | ||
$userId | string | The userId to check. |
$credentials | array | The credentials to use. |
protected _getPassword ( string $userId ) : string | ||
$userId | string | The userId to query. |
return | string | $userId's current password. |
public removeUser ( string $userId ) | ||
$userId | string | The userId to delete. |
public resetPassword ( string $userId ) : string | ||
$userId | string | The user id for which to reset the password. |
return | string | The new password on success. |
protected array $_capabilities | ||
return | array |