. * */ /** * Base class for user management * */ abstract class OC_USER_BACKEND { /** * Try to create a new user * * @param string $username The username of the user to create * @param string $password The password of the new user */ public static function createUser($username, $password){} /** * @brief Delete a new user * @param $username The username of the user to delete */ public static function deleteUser( $username ){} /** * Try to login a user * * @param string $username The username of the user to log in * @param string $password The password of the user */ public static function login($username, $password){} /** * Check if some user is logged in * */ public static function isLoggedIn(){} /** * Generate a random password */ public static function generatePassword(){} /** * Set the password of a user * * @param string $username User who password will be changed * @param string $password The new password for the user */ public static function setPassword($username, $password){} /** * Check if the password of the user is correct * * @param string $username Name of the user * @param string $password Password of the user */ public static function checkPassword($username, $password){} /** * get a list of all users * */ public static function getUsers(){} }