Skip to main content

Class: PassThroughPolicyObligationEnforcer

Pass Through Policy Obligation Enforcer.

Implements

  • IPolicyObligationEnforcer

Constructors

Constructor

new PassThroughPolicyObligationEnforcer(options?): PassThroughPolicyObligationEnforcer

Create a new instance of Pass Through Policy Obligation Enforcer.

Parameters

options?

IPassThroughPolicyObligationEnforcerConstructorOptions

The options for the pass through policy obligation enforcer.

Returns

PassThroughPolicyObligationEnforcer

Properties

CLASS_NAME

readonly static CLASS_NAME: string

The class name of the Pass Through Policy Obligation Enforcer.

Methods

className()

className(): string

Returns the class name of the component.

Returns

string

The class name of the component.

Implementation of

IPolicyObligationEnforcer.className


enforce()

enforce<D>(policy, duty, information?, data?, action?): Promise<boolean>

Enforces obligations regarding policy access to data.

Type Parameters

D

D = unknown

Parameters

policy

IOdrlPolicy

The policy to evaluate.

duty

IOdrlDuty

The duty to enforce.

information?

Information provided by the requester to determine if a policy can be created.

data?

D

The data to make a decision on.

action?

string

Optional action to make a decision on, if not provided, the enforcer will evaluate all actions in the duty.

Returns

Promise<boolean>

Whether the obligations were successfully enforced.

Implementation of

IPolicyObligationEnforcer.enforce