The OP was asking about web access security. And yes, if your whole wiki is not accessible at all without authentication, that's enough. If e.g.
http://wiki.example.com/data/pages/wiki/dokuwiki.txt is not accessible, then web access is successfully secured.
Permission settings on the files is a separate matter.