EvaluationContext

class EvaluationContext<Principal : Any, Resource : Any>(val principal: Principal, val resource: Resource, val derivedRoles: Set<String>)

Context for evaluating permissions. Contains the principal, resource, and derived roles which are used at runtime to determine whether the principal has permission to perform an action on the resource.

Constructors

Link copied to clipboard
constructor(principal: Principal, resource: Resource, derivedRoles: Set<String>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val r: Resource
Link copied to clipboard

Functions

Link copied to clipboard
fun hasDerivedRole(derivedRole: String): Boolean

Check if the principal has a derived role.