suspend fun User.isAuthorizedAwait(authority: String): Boolean
Is the user authorised to
authority
- the authority - what this really means is determined by the specific implementation. It might represent a permission to access a resource e.g. printers:printer34
or it might represent authority to a role in a roles based model, e.g. role:admin
.
resultHandler
- handler that will be called with an io.vertx.core.AsyncResult containing the value true
if the they has the authority or false
otherwise.
Returnthe
User to enable fluent use *