DecisionPointLocal

class DecisionPointLocal(policySource: PolicySource, informationPoint: InformationPoint = InformationPointPassThrough()) : DecisionPoint(source)

An in memory Decision point.

Operates on a access list and deny list basis:

  • if there is not policy that grants access, there is no access.

  • if there is a policy that grants access, but the is also a policy that denies access, there is no access.

  • if there is a policy that grants access and no policy that denies, there is access.

Constructors

Link copied to clipboard
constructor(policySource: PolicySource, informationPoint: InformationPoint = InformationPointPassThrough())
constructor(allow: List<Policy>, deny: List<Policy> = emptyList(), informationPoint: InformationPoint = InformationPointPassThrough())

Functions

Link copied to clipboard
open suspend override fun checkAuthorized(request: AccessRequest): AccessResponse
Link copied to clipboard
open suspend override fun checkAuthorizedBatch(request: AccessRequestBatch): List<AccessResponse>

A batch check of access requests for a collection of resources.