Package-level declarations

Types

Link copied to clipboard

An authorization policy that defines the permissions for a principal to perform actions on several types of resources.

Link copied to clipboard
class DerivedRoleContext<Principal : Any, Resource : Any>(val principal: Principal, val resource: Resource)

Context for evaluating derived roles. Contains the principal and resource which are used to define the conditions under which a derived role is granted.

Link copied to clipboard
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.

Link copied to clipboard

Exception thrown when a permission check fails for a given principal and resource.

Link copied to clipboard

Internal object used by AuthorizationPolicy to enable a more fluent API for checking permissions.

Link copied to clipboard
data class ResourceAction<Resource : Any>(val action: String)

Represents an action that can be performed on a resource. The generic type Resource is the type of resource this action can be performed on.

Link copied to clipboard

Represents a policy defining the rules for accessing a specific type of resource.

Functions

Link copied to clipboard

Convenience function for creating an AuthorizationPolicy and initializing it via the provided init block.

Link copied to clipboard

Convenience function for creating a ResourcePolicy and initializing it via the provided init block.