Skip to main content

Class: PassThroughPolicyEnforcementProcessor

Pass Through Policy Enforcement Processor.

Implements​

  • IPolicyEnforcementProcessor

Constructors​

Constructor​

new PassThroughPolicyEnforcementProcessor(options?): PassThroughPolicyEnforcementProcessor

Create a new instance of PassThroughPolicyEnforcementProcessor.

Parameters​

options?​

IPassThroughPolicyEnforcementProcessorConstructorOptions

The options for the pass through policy enforcement processor.

Returns​

PassThroughPolicyEnforcementProcessor

Properties​

CLASS_NAME​

readonly static CLASS_NAME: string

The class name of the Pass Through Policy Enforcement Processor.

Methods​

className()​

className(): string

Returns the class name of the component.

Returns​

string

The class name of the component.

Implementation of​

IPolicyEnforcementProcessor.className


process()​

process<D, R>(agreement, decisions, data?, action?): Promise<R>

Process the response from the policy decision point.

Type Parameters​

D​

D = unknown

R​

R = D

Parameters​

agreement​

IDataspaceProtocolAgreement

The agreement to process.

decisions​

IPolicyDecision[]

The decisions made by the policy decision point.

data?​

D

The data to process.

action?​

string

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

Returns​

Promise<R>

The data after processing.

Implementation of​

IPolicyEnforcementProcessor.process