TokenPrincipal

data class TokenPrincipal(projectId: Long, permission: Permission) : AccessPrincipal

An authenticated API access.

Constructors

Link copied to clipboard
fun TokenPrincipal(projectId: Long, permission: Permission)

Functions

Link copied to clipboard
inline fun <T : Resource> getPermissions(): Map<Long, Collection<Permission>>
Link copied to clipboard
fun hasAccess(resource: Resource, permission: Permission): Boolean

Properties

Link copied to clipboard
val accesses: Collection<Access>
Link copied to clipboard
val permission: Permission
Link copied to clipboard
val projectId: Long

Sources

Link copied to clipboard