AuthorizationAtom

data class AuthorizationAtom(val id: String, val description: String, val predicate: String, var tags: List<String>? = null, var paths: List<String>? = null)

Represents an authorization atom, which is a basic unit of authorization logic that can be used to build more complex authorization policies.

Constructors

Link copied to clipboard
constructor(id: String, description: String, predicate: String, tags: List<String>? = null, paths: List<String>? = null)

Functions

Link copied to clipboard

Creates a copy of the authorization atom with the same properties, including the list of variables.

Link copied to clipboard

Returns true if the authorization atom has any variables, false otherwise.

Link copied to clipboard

Converts the authorization atom to an AuthContext object.

Properties

Link copied to clipboard

The description of the authorization atom.

Link copied to clipboard
val id: String

The unique identifier of the authorization atom.

Link copied to clipboard

The list of paths associated with the authorization atom.

Link copied to clipboard

The predicate expression that defines the authorization rule.

Link copied to clipboard

The list of tags associated with the authorization atom.

Link copied to clipboard

The list of variables used in the authorization atom predicate or path expressions.