ExpressionPolicy

data class ExpressionPolicy(val leftOperand: ValueReference, val operatorType: OperatorType, val rightOperand: ValueReference) : Policy(source)

A policy for building basic 2 operand expressions.

Conceptual Examples:

1) Subjects "id" attribute is equal to Resources "owner_id" attribute.
2) Environments "ip" attribute is equal to 102.132.128.37
3) Subjects "age" attribute is greater than 18
4) Subjects "roles" attribute contains any of ["admin", "supervisor"]

Constructors

Link copied to clipboard
constructor(leftOperand: ValueReference, operatorType: OperatorType, rightOperand: ValueReference)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun checkAuthorized(accessRequest: AccessRequest): AccessResponse