tock / ai.tock.shared.security / TockUser

# TockUser

`data class TockUser : AbstractUser` (source)

Tock implementation of vertx User.

### Constructors

#### <init> | Tock implementation of vertx User. `TockUser(user: UserLogin, namespace: String, roles: Set<String>, registered: Boolean = false)`

### Properties

#### namespace | `val namespace: String`
#### registered | `val registered: Boolean`
#### roles | `val roles: Set<String>`
#### user | `val user: UserLogin`

### Functions

#### doIsPermitted | `fun doIsPermitted(permissionOrRole: String, handler: Handler<AsyncResult<Boolean>>): Unit`
#### principal | `fun principal(): JsonObject`
#### setAuthProvider | `fun setAuthProvider(authProvider: AuthProvider): Unit`