. */ namespace SP\Domain\Crypt; use Exception; use SP\Core\Exceptions\ConstraintException; use SP\Core\Exceptions\QueryException; use SP\Domain\Common\Services\ServiceException; use SP\Domain\Crypt\Services\UpdateMasterPassRequest; use SP\Infrastructure\Common\Repositories\NoSuchItemException; /** * Class MasterPassService * * @package SP\Domain\Crypt\Services */ interface MasterPassServiceInterface { /** * @throws ServiceException * @throws NoSuchItemException */ public function checkUserUpdateMPass(int $userMPassTime): bool; /** * @throws ServiceException * @throws NoSuchItemException */ public function checkMasterPassword(string $masterPassword): bool; /** * @throws Exception */ public function changeMasterPassword(UpdateMasterPassRequest $request): void; /** * @throws ConstraintException * @throws QueryException */ public function updateConfig($hash): void; }