@twin.org/rights-management-plugins 0.0.3-next.9 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/dist/es/index.js +20 -10
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IAutomationPolicyExecutionActionConfig.js +4 -0
- package/dist/es/models/IAutomationPolicyExecutionActionConfig.js.map +1 -0
- package/dist/es/models/IAutomationPolicyExecutionActionConstructorOptions.js +2 -0
- package/dist/es/models/IAutomationPolicyExecutionActionConstructorOptions.js.map +1 -0
- package/dist/es/models/{IExamplePolicyArbiterConstructorOptions.js → IDefaultPolicyArbiterConfig.js} +1 -1
- package/dist/es/models/IDefaultPolicyArbiterConfig.js.map +1 -0
- package/dist/es/models/{IExamplePolicyRequesterConstructorOptions.js → IDefaultPolicyArbiterConstructorOptions.js} +1 -1
- package/dist/es/models/IDefaultPolicyArbiterConstructorOptions.js.map +1 -0
- package/dist/es/models/{IExamplePolicyEnforcementProcessorConstructorOptions.js → IDefaultPolicyEnforcementProcessorConstructorOptions.js} +1 -1
- package/dist/es/models/IDefaultPolicyEnforcementProcessorConstructorOptions.js.map +1 -0
- package/dist/es/models/IIdentityPolicyInformationSourceConstructorOptions.js.map +1 -1
- package/dist/es/models/IIdentityProfilePolicyInformationSourceConstructorOptions.js +4 -0
- package/dist/es/models/IIdentityProfilePolicyInformationSourceConstructorOptions.js.map +1 -0
- package/dist/es/models/ILoggingPolicyExecutionActionConfig.js.map +1 -1
- package/dist/es/models/ILoggingPolicyExecutionActionConstructorOptions.js.map +1 -1
- package/dist/es/models/{IExampleDataAccessHandlerConstructorOptions.js → IPassThroughPolicyArbiterConstructorOptions.js} +1 -1
- package/dist/es/models/IPassThroughPolicyArbiterConstructorOptions.js.map +1 -0
- package/dist/es/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js +4 -0
- package/dist/es/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.js.map +1 -0
- package/dist/es/models/IPassThroughPolicyNegotiatorConstructorOptions.js +4 -0
- package/dist/es/models/IPassThroughPolicyNegotiatorConstructorOptions.js.map +1 -0
- package/dist/es/models/IPassThroughPolicyObligationEnforcerConstructorOptions.js +4 -0
- package/dist/es/models/IPassThroughPolicyObligationEnforcerConstructorOptions.js.map +1 -0
- package/dist/es/models/{IExamplePolicyNegotiatorConstructorOptions.js → IPassThroughPolicyRequesterConstructorOptions.js} +1 -1
- package/dist/es/models/IPassThroughPolicyRequesterConstructorOptions.js.map +1 -0
- package/dist/es/models/IStaticPolicyInformationSource.js.map +1 -1
- package/dist/es/models/IStaticPolicyInformationSourceConstructorOptions.js.map +1 -1
- package/dist/es/policyArbiters/defaultPolicyArbiter.js +1790 -0
- package/dist/es/policyArbiters/defaultPolicyArbiter.js.map +1 -0
- package/dist/es/policyArbiters/passThroughPolicyArbiter.js +59 -0
- package/dist/es/policyArbiters/passThroughPolicyArbiter.js.map +1 -0
- package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js +147 -0
- package/dist/es/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.js.map +1 -0
- package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js +54 -0
- package/dist/es/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.js.map +1 -0
- package/dist/es/policyExecutionActions/automationPolicyExecutionAction.js +77 -0
- package/dist/es/policyExecutionActions/automationPolicyExecutionAction.js.map +1 -0
- package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js +22 -18
- package/dist/es/policyExecutionActions/loggingPolicyExecutionAction.js.map +1 -1
- package/dist/es/policyInformationSources/identityPolicyInformationSource.js +44 -32
- package/dist/es/policyInformationSources/identityPolicyInformationSource.js.map +1 -1
- package/dist/es/policyInformationSources/identityProfilePolicyInformationSource.js +112 -0
- package/dist/es/policyInformationSources/identityProfilePolicyInformationSource.js.map +1 -0
- package/dist/es/policyInformationSources/staticPolicyInformationSource.js +18 -16
- package/dist/es/policyInformationSources/staticPolicyInformationSource.js.map +1 -1
- package/dist/es/policyNegotiators/passThroughPolicyNegotiator.js +88 -0
- package/dist/es/policyNegotiators/passThroughPolicyNegotiator.js.map +1 -0
- package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js +56 -0
- package/dist/es/policyObligationEnforcers/passThroughPolicyObligationEnforcer.js.map +1 -0
- package/dist/es/policyRequesters/passThroughPolicyRequester.js +103 -0
- package/dist/es/policyRequesters/passThroughPolicyRequester.js.map +1 -0
- package/dist/types/index.d.ts +20 -10
- package/dist/types/models/IAutomationPolicyExecutionActionConfig.d.ts +9 -0
- package/dist/types/models/IAutomationPolicyExecutionActionConstructorOptions.d.ts +15 -0
- package/dist/types/models/IDefaultPolicyArbiterConfig.d.ts +10 -0
- package/dist/types/models/IDefaultPolicyArbiterConstructorOptions.d.ts +19 -0
- package/dist/types/models/IDefaultPolicyEnforcementProcessorConstructorOptions.d.ts +9 -0
- package/dist/types/models/IIdentityPolicyInformationSourceConstructorOptions.d.ts +0 -1
- package/dist/types/models/IIdentityProfilePolicyInformationSourceConstructorOptions.d.ts +14 -0
- package/dist/types/models/ILoggingPolicyExecutionActionConfig.d.ts +2 -2
- package/dist/types/models/ILoggingPolicyExecutionActionConstructorOptions.d.ts +0 -1
- package/dist/types/models/IPassThroughPolicyArbiterConstructorOptions.d.ts +9 -0
- package/dist/types/models/IPassThroughPolicyEnforcementProcessorConstructorOptions.d.ts +9 -0
- package/dist/types/models/IPassThroughPolicyNegotiatorConstructorOptions.d.ts +9 -0
- package/dist/types/models/IPassThroughPolicyObligationEnforcerConstructorOptions.d.ts +9 -0
- package/dist/types/models/IPassThroughPolicyRequesterConstructorOptions.d.ts +9 -0
- package/dist/types/models/IStaticPolicyInformationSource.d.ts +8 -5
- package/dist/types/models/IStaticPolicyInformationSourceConstructorOptions.d.ts +0 -1
- package/dist/types/policyArbiters/defaultPolicyArbiter.d.ts +38 -0
- package/dist/types/policyArbiters/passThroughPolicyArbiter.d.ts +32 -0
- package/dist/types/policyEnforcementProcessor/defaultPolicyEnforcementProcessor.d.ts +32 -0
- package/dist/types/policyEnforcementProcessor/passThroughPolicyEnforcementProcessor.d.ts +32 -0
- package/dist/types/policyExecutionActions/automationPolicyExecutionAction.d.ts +45 -0
- package/dist/types/policyExecutionActions/loggingPolicyExecutionAction.d.ts +6 -18
- package/dist/types/policyInformationSources/identityPolicyInformationSource.d.ts +5 -6
- package/dist/types/policyInformationSources/identityProfilePolicyInformationSource.d.ts +31 -0
- package/dist/types/policyInformationSources/staticPolicyInformationSource.d.ts +5 -6
- package/dist/types/policyNegotiators/passThroughPolicyNegotiator.d.ts +47 -0
- package/dist/types/policyObligationEnforcers/passThroughPolicyObligationEnforcer.d.ts +32 -0
- package/dist/types/policyRequesters/passThroughPolicyRequester.d.ts +48 -0
- package/docs/changelog.md +1230 -10
- package/docs/examples.md +295 -1
- package/docs/reference/classes/AutomationPolicyExecutionAction.md +143 -0
- package/docs/reference/classes/DefaultPolicyArbiter.md +113 -0
- package/docs/reference/classes/DefaultPolicyEnforcementProcessor.md +107 -0
- package/docs/reference/classes/IdentityPolicyInformationSource.md +14 -14
- package/docs/reference/classes/IdentityProfilePolicyInformationSource.md +103 -0
- package/docs/reference/classes/LoggingPolicyExecutionAction.md +20 -20
- package/docs/reference/classes/PassThroughPolicyArbiter.md +103 -0
- package/docs/reference/classes/PassThroughPolicyEnforcementProcessor.md +107 -0
- package/docs/reference/classes/{ExamplePolicyNegotiator.md → PassThroughPolicyNegotiator.md} +27 -21
- package/docs/reference/classes/PassThroughPolicyObligationEnforcer.md +109 -0
- package/docs/reference/classes/{ExamplePolicyRequester.md → PassThroughPolicyRequester.md} +22 -40
- package/docs/reference/classes/StaticPolicyInformationSource.md +15 -15
- package/docs/reference/index.md +20 -10
- package/docs/reference/interfaces/IAutomationPolicyExecutionActionConfig.md +11 -0
- package/docs/reference/interfaces/IAutomationPolicyExecutionActionConstructorOptions.md +25 -0
- package/docs/reference/interfaces/IDefaultPolicyArbiterConfig.md +17 -0
- package/docs/reference/interfaces/IDefaultPolicyArbiterConstructorOptions.md +33 -0
- package/docs/reference/interfaces/IDefaultPolicyEnforcementProcessorConstructorOptions.md +11 -0
- package/docs/reference/interfaces/IIdentityPolicyInformationSourceConstructorOptions.md +4 -10
- package/docs/reference/interfaces/IIdentityProfilePolicyInformationSourceConstructorOptions.md +25 -0
- package/docs/reference/interfaces/ILoggingPolicyExecutionActionConfig.md +9 -9
- package/docs/reference/interfaces/ILoggingPolicyExecutionActionConstructorOptions.md +4 -10
- package/docs/reference/interfaces/IPassThroughPolicyArbiterConstructorOptions.md +11 -0
- package/docs/reference/interfaces/IPassThroughPolicyEnforcementProcessorConstructorOptions.md +11 -0
- package/docs/reference/interfaces/IPassThroughPolicyNegotiatorConstructorOptions.md +11 -0
- package/docs/reference/interfaces/IPassThroughPolicyObligationEnforcerConstructorOptions.md +11 -0
- package/docs/reference/interfaces/IPassThroughPolicyRequesterConstructorOptions.md +11 -0
- package/docs/reference/interfaces/IStaticPolicyInformationSource.md +21 -6
- package/docs/reference/interfaces/IStaticPolicyInformationSourceConfig.md +2 -2
- package/docs/reference/interfaces/IStaticPolicyInformationSourceConstructorOptions.md +4 -10
- package/locales/en.json +65 -6
- package/package.json +14 -11
- package/dist/es/dataAccessHandlers/examplePolicyRequester.js +0 -82
- package/dist/es/dataAccessHandlers/examplePolicyRequester.js.map +0 -1
- package/dist/es/models/IExampleDataAccessHandlerConstructorOptions.js.map +0 -1
- package/dist/es/models/IExamplePolicyArbiterConstructorOptions.js.map +0 -1
- package/dist/es/models/IExamplePolicyEnforcementProcessorConstructorOptions.js.map +0 -1
- package/dist/es/models/IExamplePolicyNegotiatorConstructorOptions.js.map +0 -1
- package/dist/es/models/IExamplePolicyRequesterConstructorOptions.js.map +0 -1
- package/dist/es/policyArbiters/examplePolicyArbiter.js +0 -50
- package/dist/es/policyArbiters/examplePolicyArbiter.js.map +0 -1
- package/dist/es/policyEnforcementProcessor/examplePolicyEnforcementProcessor.js +0 -42
- package/dist/es/policyEnforcementProcessor/examplePolicyEnforcementProcessor.js.map +0 -1
- package/dist/es/policyNegotiators/examplePolicyNegotiator.js +0 -61
- package/dist/es/policyNegotiators/examplePolicyNegotiator.js.map +0 -1
- package/dist/es/policyRequesters/examplePolicyRequester.js +0 -69
- package/dist/es/policyRequesters/examplePolicyRequester.js.map +0 -1
- package/dist/types/dataAccessHandlers/examplePolicyRequester.d.ts +0 -68
- package/dist/types/models/IExampleDataAccessHandlerConstructorOptions.d.ts +0 -10
- package/dist/types/models/IExamplePolicyArbiterConstructorOptions.d.ts +0 -10
- package/dist/types/models/IExamplePolicyEnforcementProcessorConstructorOptions.d.ts +0 -10
- package/dist/types/models/IExamplePolicyNegotiatorConstructorOptions.d.ts +0 -10
- package/dist/types/models/IExamplePolicyRequesterConstructorOptions.d.ts +0 -10
- package/dist/types/policyArbiters/examplePolicyArbiter.d.ts +0 -36
- package/dist/types/policyEnforcementProcessor/examplePolicyEnforcementProcessor.d.ts +0 -29
- package/dist/types/policyNegotiators/examplePolicyNegotiator.d.ts +0 -45
- package/dist/types/policyRequesters/examplePolicyRequester.d.ts +0 -53
- package/docs/reference/classes/ExampleDataAccessHandler.md +0 -243
- package/docs/reference/classes/ExamplePolicyArbiter.md +0 -121
- package/docs/reference/classes/ExamplePolicyEnforcementProcessor.md +0 -101
- package/docs/reference/interfaces/IExampleDataAccessHandlerConstructorOptions.md +0 -17
- package/docs/reference/interfaces/IExamplePolicyArbiterConstructorOptions.md +0 -17
- package/docs/reference/interfaces/IExamplePolicyEnforcementProcessorConstructorOptions.md +0 -17
- package/docs/reference/interfaces/IExamplePolicyNegotiatorConstructorOptions.md +0 -17
- package/docs/reference/interfaces/IExamplePolicyRequesterConstructorOptions.md +0 -17
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Class: PassThroughPolicyObligationEnforcer
|
|
2
|
+
|
|
3
|
+
Pass Through Policy Obligation Enforcer.
|
|
4
|
+
|
|
5
|
+
## Implements
|
|
6
|
+
|
|
7
|
+
- `IPolicyObligationEnforcer`
|
|
8
|
+
|
|
9
|
+
## Constructors
|
|
10
|
+
|
|
11
|
+
### Constructor
|
|
12
|
+
|
|
13
|
+
> **new PassThroughPolicyObligationEnforcer**(`options?`): `PassThroughPolicyObligationEnforcer`
|
|
14
|
+
|
|
15
|
+
Create a new instance of Pass Through Policy Obligation Enforcer.
|
|
16
|
+
|
|
17
|
+
#### Parameters
|
|
18
|
+
|
|
19
|
+
##### options?
|
|
20
|
+
|
|
21
|
+
[`IPassThroughPolicyObligationEnforcerConstructorOptions`](../interfaces/IPassThroughPolicyObligationEnforcerConstructorOptions.md)
|
|
22
|
+
|
|
23
|
+
The options for the pass through policy obligation enforcer.
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
`PassThroughPolicyObligationEnforcer`
|
|
28
|
+
|
|
29
|
+
## Properties
|
|
30
|
+
|
|
31
|
+
### CLASS\_NAME {#class_name}
|
|
32
|
+
|
|
33
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
34
|
+
|
|
35
|
+
The class name of the Pass Through Policy Obligation Enforcer.
|
|
36
|
+
|
|
37
|
+
## Methods
|
|
38
|
+
|
|
39
|
+
### className() {#classname}
|
|
40
|
+
|
|
41
|
+
> **className**(): `string`
|
|
42
|
+
|
|
43
|
+
Returns the class name of the component.
|
|
44
|
+
|
|
45
|
+
#### Returns
|
|
46
|
+
|
|
47
|
+
`string`
|
|
48
|
+
|
|
49
|
+
The class name of the component.
|
|
50
|
+
|
|
51
|
+
#### Implementation of
|
|
52
|
+
|
|
53
|
+
`IPolicyObligationEnforcer.className`
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### enforce() {#enforce}
|
|
58
|
+
|
|
59
|
+
> **enforce**\<`D`\>(`policy`, `duty`, `information?`, `data?`, `action?`): `Promise`\<`boolean`\>
|
|
60
|
+
|
|
61
|
+
Enforces obligations regarding policy access to data.
|
|
62
|
+
|
|
63
|
+
#### Type Parameters
|
|
64
|
+
|
|
65
|
+
##### D
|
|
66
|
+
|
|
67
|
+
`D` = `unknown`
|
|
68
|
+
|
|
69
|
+
#### Parameters
|
|
70
|
+
|
|
71
|
+
##### policy
|
|
72
|
+
|
|
73
|
+
`IRightsManagementPolicy`
|
|
74
|
+
|
|
75
|
+
The policy to evaluate.
|
|
76
|
+
|
|
77
|
+
##### duty
|
|
78
|
+
|
|
79
|
+
`IOdrlDuty`
|
|
80
|
+
|
|
81
|
+
The duty to enforce.
|
|
82
|
+
|
|
83
|
+
##### information?
|
|
84
|
+
|
|
85
|
+
`IRightsManagementInformation`
|
|
86
|
+
|
|
87
|
+
Information provided by the requester to determine if a policy can be created.
|
|
88
|
+
|
|
89
|
+
##### data?
|
|
90
|
+
|
|
91
|
+
`D`
|
|
92
|
+
|
|
93
|
+
The data to make a decision on.
|
|
94
|
+
|
|
95
|
+
##### action?
|
|
96
|
+
|
|
97
|
+
`string`
|
|
98
|
+
|
|
99
|
+
Optional action to make a decision on, if not provided, the enforcer will evaluate all actions in the duty.
|
|
100
|
+
|
|
101
|
+
#### Returns
|
|
102
|
+
|
|
103
|
+
`Promise`\<`boolean`\>
|
|
104
|
+
|
|
105
|
+
Whether the obligations were successfully enforced.
|
|
106
|
+
|
|
107
|
+
#### Implementation of
|
|
108
|
+
|
|
109
|
+
`IPolicyObligationEnforcer.enforce`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Class:
|
|
1
|
+
# Class: PassThroughPolicyRequester
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Pass Through Policy Requester.
|
|
4
4
|
|
|
5
5
|
## Implements
|
|
6
6
|
|
|
@@ -10,33 +10,33 @@ Example Policy Requester.
|
|
|
10
10
|
|
|
11
11
|
### Constructor
|
|
12
12
|
|
|
13
|
-
> **new
|
|
13
|
+
> **new PassThroughPolicyRequester**(`options?`): `PassThroughPolicyRequester`
|
|
14
14
|
|
|
15
|
-
Create a new instance of
|
|
15
|
+
Create a new instance of PassThroughPolicyRequester.
|
|
16
16
|
|
|
17
17
|
#### Parameters
|
|
18
18
|
|
|
19
19
|
##### options?
|
|
20
20
|
|
|
21
|
-
[`
|
|
21
|
+
[`IPassThroughPolicyRequesterConstructorOptions`](../interfaces/IPassThroughPolicyRequesterConstructorOptions.md)
|
|
22
22
|
|
|
23
|
-
The options for the
|
|
23
|
+
The options for the pass through policy Requester.
|
|
24
24
|
|
|
25
25
|
#### Returns
|
|
26
26
|
|
|
27
|
-
`
|
|
27
|
+
`PassThroughPolicyRequester`
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### CLASS\_NAME
|
|
31
|
+
### CLASS\_NAME {#class_name}
|
|
32
32
|
|
|
33
33
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
34
34
|
|
|
35
|
-
The class name of the
|
|
35
|
+
The class name of the Pass Through Policy Requester.
|
|
36
36
|
|
|
37
37
|
## Methods
|
|
38
38
|
|
|
39
|
-
### className()
|
|
39
|
+
### className() {#classname}
|
|
40
40
|
|
|
41
41
|
> **className**(): `string`
|
|
42
42
|
|
|
@@ -54,29 +54,11 @@ The class name of the component.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
###
|
|
58
|
-
|
|
59
|
-
> **requesterId**(): `string`
|
|
60
|
-
|
|
61
|
-
The unique id of the requester.
|
|
62
|
-
|
|
63
|
-
#### Returns
|
|
64
|
-
|
|
65
|
-
`string`
|
|
66
|
-
|
|
67
|
-
The requester id.
|
|
68
|
-
|
|
69
|
-
#### Implementation of
|
|
70
|
-
|
|
71
|
-
`IPolicyRequester.requesterId`
|
|
72
|
-
|
|
73
|
-
***
|
|
74
|
-
|
|
75
|
-
### offer()
|
|
57
|
+
### offer() {#offer}
|
|
76
58
|
|
|
77
59
|
> **offer**(`negotiationId`, `offer`): `Promise`\<`boolean`\>
|
|
78
60
|
|
|
79
|
-
A policy has been offered by a provider, let the
|
|
61
|
+
A policy has been offered by a provider, let the request handler know about it.
|
|
80
62
|
|
|
81
63
|
#### Parameters
|
|
82
64
|
|
|
@@ -88,7 +70,7 @@ The id of the negotiation.
|
|
|
88
70
|
|
|
89
71
|
##### offer
|
|
90
72
|
|
|
91
|
-
`
|
|
73
|
+
`IDataspaceProtocolOffer`
|
|
92
74
|
|
|
93
75
|
The offer sent by the provider.
|
|
94
76
|
|
|
@@ -104,11 +86,11 @@ True if the offer was accepted, false otherwise.
|
|
|
104
86
|
|
|
105
87
|
***
|
|
106
88
|
|
|
107
|
-
### agreement()
|
|
89
|
+
### agreement() {#agreement}
|
|
108
90
|
|
|
109
91
|
> **agreement**(`negotiationId`, `agreement`): `Promise`\<`boolean`\>
|
|
110
92
|
|
|
111
|
-
A policy agreement has been sent by a provider, let the
|
|
93
|
+
A policy agreement has been sent by a provider, let the request handler know about it.
|
|
112
94
|
|
|
113
95
|
#### Parameters
|
|
114
96
|
|
|
@@ -120,7 +102,7 @@ The id of the negotiation.
|
|
|
120
102
|
|
|
121
103
|
##### agreement
|
|
122
104
|
|
|
123
|
-
`
|
|
105
|
+
`IDataspaceProtocolAgreement`
|
|
124
106
|
|
|
125
107
|
The agreement sent by the provider.
|
|
126
108
|
|
|
@@ -136,11 +118,11 @@ True if the agreement was accepted, false otherwise.
|
|
|
136
118
|
|
|
137
119
|
***
|
|
138
120
|
|
|
139
|
-
### finalised()
|
|
121
|
+
### finalised() {#finalised}
|
|
140
122
|
|
|
141
123
|
> **finalised**(`negotiationId`): `Promise`\<`void`\>
|
|
142
124
|
|
|
143
|
-
A policy finalisation has been sent by a provider, let the
|
|
125
|
+
A policy finalisation has been sent by a provider, let the request handler know about it.
|
|
144
126
|
|
|
145
127
|
#### Parameters
|
|
146
128
|
|
|
@@ -154,7 +136,7 @@ The id of the negotiation.
|
|
|
154
136
|
|
|
155
137
|
`Promise`\<`void`\>
|
|
156
138
|
|
|
157
|
-
|
|
139
|
+
A promise that resolves when the finalisation has been processed.
|
|
158
140
|
|
|
159
141
|
#### Implementation of
|
|
160
142
|
|
|
@@ -162,11 +144,11 @@ Nothing.
|
|
|
162
144
|
|
|
163
145
|
***
|
|
164
146
|
|
|
165
|
-
### terminated()
|
|
147
|
+
### terminated() {#terminated}
|
|
166
148
|
|
|
167
149
|
> **terminated**(`negotiationId`): `Promise`\<`void`\>
|
|
168
150
|
|
|
169
|
-
A policy termination has been sent by a provider, let the
|
|
151
|
+
A policy termination has been sent by a provider, let the request handler know about it.
|
|
170
152
|
|
|
171
153
|
#### Parameters
|
|
172
154
|
|
|
@@ -180,7 +162,7 @@ The id of the negotiation.
|
|
|
180
162
|
|
|
181
163
|
`Promise`\<`void`\>
|
|
182
164
|
|
|
183
|
-
|
|
165
|
+
A promise that resolves when the termination has been processed.
|
|
184
166
|
|
|
185
167
|
#### Implementation of
|
|
186
168
|
|
|
@@ -28,7 +28,7 @@ The options for the logging policy source.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### CLASS\_NAME
|
|
31
|
+
### CLASS\_NAME {#class_name}
|
|
32
32
|
|
|
33
33
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ The class name of the Static Policy Information Source.
|
|
|
36
36
|
|
|
37
37
|
## Methods
|
|
38
38
|
|
|
39
|
-
### className()
|
|
39
|
+
### className() {#classname}
|
|
40
40
|
|
|
41
41
|
> **className**(): `string`
|
|
42
42
|
|
|
@@ -54,9 +54,9 @@ The class name of the component.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### retrieve()
|
|
57
|
+
### retrieve() {#retrieve}
|
|
58
58
|
|
|
59
|
-
> **retrieve**\<`D`\>(`
|
|
59
|
+
> **retrieve**\<`D`\>(`policy`, `accessMode`, `data?`, `action?`): `Promise`\<`IRightsManagementInformation` \| `undefined`\>
|
|
60
60
|
|
|
61
61
|
Retrieve information from the sources.
|
|
62
62
|
|
|
@@ -68,11 +68,11 @@ Retrieve information from the sources.
|
|
|
68
68
|
|
|
69
69
|
#### Parameters
|
|
70
70
|
|
|
71
|
-
#####
|
|
71
|
+
##### policy
|
|
72
72
|
|
|
73
|
-
`
|
|
73
|
+
`IRightsManagementPolicy` \| `undefined`
|
|
74
74
|
|
|
75
|
-
The
|
|
75
|
+
The policy to retrieve information for if available.
|
|
76
76
|
|
|
77
77
|
##### accessMode
|
|
78
78
|
|
|
@@ -80,21 +80,21 @@ The locator to find relevant policies.
|
|
|
80
80
|
|
|
81
81
|
The access mode to use for the retrieval.
|
|
82
82
|
|
|
83
|
-
##### policies
|
|
84
|
-
|
|
85
|
-
`IOdrlPolicy`[]
|
|
86
|
-
|
|
87
|
-
The policies that apply to the data.
|
|
88
|
-
|
|
89
83
|
##### data?
|
|
90
84
|
|
|
91
85
|
`D`
|
|
92
86
|
|
|
93
87
|
The data to process.
|
|
94
88
|
|
|
89
|
+
##### action?
|
|
90
|
+
|
|
91
|
+
`string`
|
|
92
|
+
|
|
93
|
+
The action to get any additional information for.
|
|
94
|
+
|
|
95
95
|
#### Returns
|
|
96
96
|
|
|
97
|
-
`Promise`\<`
|
|
97
|
+
`Promise`\<`IRightsManagementInformation` \| `undefined`\>
|
|
98
98
|
|
|
99
99
|
The objects containing relevant information or undefined if nothing relevant is found.
|
|
100
100
|
|
|
@@ -104,7 +104,7 @@ The objects containing relevant information or undefined if nothing relevant is
|
|
|
104
104
|
|
|
105
105
|
***
|
|
106
106
|
|
|
107
|
-
### addInformation()
|
|
107
|
+
### addInformation() {#addinformation}
|
|
108
108
|
|
|
109
109
|
> **addInformation**(`info`): `void`
|
|
110
110
|
|
package/docs/reference/index.md
CHANGED
|
@@ -2,25 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
## Classes
|
|
4
4
|
|
|
5
|
-
- [
|
|
6
|
-
- [
|
|
7
|
-
- [
|
|
5
|
+
- [DefaultPolicyArbiter](classes/DefaultPolicyArbiter.md)
|
|
6
|
+
- [PassThroughPolicyArbiter](classes/PassThroughPolicyArbiter.md)
|
|
7
|
+
- [DefaultPolicyEnforcementProcessor](classes/DefaultPolicyEnforcementProcessor.md)
|
|
8
|
+
- [PassThroughPolicyEnforcementProcessor](classes/PassThroughPolicyEnforcementProcessor.md)
|
|
9
|
+
- [AutomationPolicyExecutionAction](classes/AutomationPolicyExecutionAction.md)
|
|
8
10
|
- [LoggingPolicyExecutionAction](classes/LoggingPolicyExecutionAction.md)
|
|
9
11
|
- [IdentityPolicyInformationSource](classes/IdentityPolicyInformationSource.md)
|
|
12
|
+
- [IdentityProfilePolicyInformationSource](classes/IdentityProfilePolicyInformationSource.md)
|
|
10
13
|
- [StaticPolicyInformationSource](classes/StaticPolicyInformationSource.md)
|
|
11
|
-
- [
|
|
12
|
-
- [
|
|
14
|
+
- [PassThroughPolicyNegotiator](classes/PassThroughPolicyNegotiator.md)
|
|
15
|
+
- [PassThroughPolicyObligationEnforcer](classes/PassThroughPolicyObligationEnforcer.md)
|
|
16
|
+
- [PassThroughPolicyRequester](classes/PassThroughPolicyRequester.md)
|
|
13
17
|
|
|
14
18
|
## Interfaces
|
|
15
19
|
|
|
16
|
-
- [
|
|
17
|
-
- [
|
|
18
|
-
- [
|
|
19
|
-
- [
|
|
20
|
-
- [
|
|
20
|
+
- [IAutomationPolicyExecutionActionConfig](interfaces/IAutomationPolicyExecutionActionConfig.md)
|
|
21
|
+
- [IAutomationPolicyExecutionActionConstructorOptions](interfaces/IAutomationPolicyExecutionActionConstructorOptions.md)
|
|
22
|
+
- [IDefaultPolicyArbiterConfig](interfaces/IDefaultPolicyArbiterConfig.md)
|
|
23
|
+
- [IDefaultPolicyArbiterConstructorOptions](interfaces/IDefaultPolicyArbiterConstructorOptions.md)
|
|
24
|
+
- [IDefaultPolicyEnforcementProcessorConstructorOptions](interfaces/IDefaultPolicyEnforcementProcessorConstructorOptions.md)
|
|
21
25
|
- [IIdentityPolicyInformationSourceConstructorOptions](interfaces/IIdentityPolicyInformationSourceConstructorOptions.md)
|
|
26
|
+
- [IIdentityProfilePolicyInformationSourceConstructorOptions](interfaces/IIdentityProfilePolicyInformationSourceConstructorOptions.md)
|
|
22
27
|
- [ILoggingPolicyExecutionActionConfig](interfaces/ILoggingPolicyExecutionActionConfig.md)
|
|
23
28
|
- [ILoggingPolicyExecutionActionConstructorOptions](interfaces/ILoggingPolicyExecutionActionConstructorOptions.md)
|
|
29
|
+
- [IPassThroughPolicyArbiterConstructorOptions](interfaces/IPassThroughPolicyArbiterConstructorOptions.md)
|
|
30
|
+
- [IPassThroughPolicyEnforcementProcessorConstructorOptions](interfaces/IPassThroughPolicyEnforcementProcessorConstructorOptions.md)
|
|
31
|
+
- [IPassThroughPolicyNegotiatorConstructorOptions](interfaces/IPassThroughPolicyNegotiatorConstructorOptions.md)
|
|
32
|
+
- [IPassThroughPolicyObligationEnforcerConstructorOptions](interfaces/IPassThroughPolicyObligationEnforcerConstructorOptions.md)
|
|
33
|
+
- [IPassThroughPolicyRequesterConstructorOptions](interfaces/IPassThroughPolicyRequesterConstructorOptions.md)
|
|
24
34
|
- [IStaticPolicyInformationSource](interfaces/IStaticPolicyInformationSource.md)
|
|
25
35
|
- [IStaticPolicyInformationSourceConfig](interfaces/IStaticPolicyInformationSourceConfig.md)
|
|
26
36
|
- [IStaticPolicyInformationSourceConstructorOptions](interfaces/IStaticPolicyInformationSourceConstructorOptions.md)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IAutomationPolicyExecutionActionConfig
|
|
2
|
+
|
|
3
|
+
Options for the Automation Policy Execution Action Component.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### triggerActions? {#triggeractions}
|
|
8
|
+
|
|
9
|
+
> `optional` **triggerActions?**: `string`[]
|
|
10
|
+
|
|
11
|
+
The policy decision stages to trigger the automation actions, if undefined defaults to "inform".
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Interface: IAutomationPolicyExecutionActionConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Automation Policy Execution Action.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### automationComponentType? {#automationcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **automationComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The automation component for executing automation policies.
|
|
12
|
+
|
|
13
|
+
#### Default
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
automation
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### config? {#config}
|
|
22
|
+
|
|
23
|
+
> `optional` **config?**: [`IAutomationPolicyExecutionActionConfig`](IAutomationPolicyExecutionActionConfig.md)
|
|
24
|
+
|
|
25
|
+
The configuration for the automation policy execution.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Interface: IDefaultPolicyArbiterConfig
|
|
2
|
+
|
|
3
|
+
Configuration for the Default Policy Arbiter.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### maxInheritanceDepth? {#maxinheritancedepth}
|
|
8
|
+
|
|
9
|
+
> `optional` **maxInheritanceDepth?**: `number`
|
|
10
|
+
|
|
11
|
+
The maximum depth to traverse when resolving inherited policies.
|
|
12
|
+
|
|
13
|
+
#### Default
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
10
|
|
17
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Interface: IDefaultPolicyArbiterConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Default Policy Arbiter.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The logging component for policy arbiter.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### policyAdministrationPointComponentType? {#policyadministrationpointcomponenttype}
|
|
16
|
+
|
|
17
|
+
> `optional` **policyAdministrationPointComponentType?**: `string`
|
|
18
|
+
|
|
19
|
+
The policy administration point component for retrieving inherited policies.
|
|
20
|
+
|
|
21
|
+
#### Default
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
policy-administration-point
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### config? {#config}
|
|
30
|
+
|
|
31
|
+
> `optional` **config?**: [`IDefaultPolicyArbiterConfig`](IDefaultPolicyArbiterConfig.md)
|
|
32
|
+
|
|
33
|
+
The configuration options for the default policy arbiter.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IDefaultPolicyEnforcementProcessorConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Default Policy Enforcement Processor.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The logging component for policy enforcement processor.
|
|
@@ -4,23 +4,17 @@ Options for the Identity Policy Information Source Component.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### loggingComponentType?
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
8
|
|
|
9
|
-
> `optional` **loggingComponentType
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
10
|
|
|
11
11
|
The logging component for logging policy source.
|
|
12
12
|
|
|
13
|
-
#### Default
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
logging
|
|
17
|
-
```
|
|
18
|
-
|
|
19
13
|
***
|
|
20
14
|
|
|
21
|
-
### identityResolverComponentType?
|
|
15
|
+
### identityResolverComponentType? {#identityresolvercomponenttype}
|
|
22
16
|
|
|
23
|
-
> `optional` **identityResolverComponentType
|
|
17
|
+
> `optional` **identityResolverComponentType?**: `string`
|
|
24
18
|
|
|
25
19
|
The component for resolving identities.
|
|
26
20
|
|
package/docs/reference/interfaces/IIdentityProfilePolicyInformationSourceConstructorOptions.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Interface: IIdentityProfilePolicyInformationSourceConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Identity Profile Policy Information Source Component.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The logging component for logging policy source.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### identityProfileComponentType? {#identityprofilecomponenttype}
|
|
16
|
+
|
|
17
|
+
> `optional` **identityProfileComponentType?**: `string`
|
|
18
|
+
|
|
19
|
+
The component for retrieving identity profiles.
|
|
20
|
+
|
|
21
|
+
#### Default
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
identity-profile
|
|
25
|
+
```
|
|
@@ -4,17 +4,17 @@ Options for the Logging Policy Execution Action Component.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### stages?
|
|
7
|
+
### stages? {#stages}
|
|
8
8
|
|
|
9
|
-
> `optional` **stages
|
|
9
|
+
> `optional` **stages?**: `PolicyDecisionStage`[]
|
|
10
10
|
|
|
11
11
|
The policy decision stages to log, if undefined defaults to all.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### includeData?
|
|
15
|
+
### includeData? {#includedata}
|
|
16
16
|
|
|
17
|
-
> `optional` **includeData
|
|
17
|
+
> `optional` **includeData?**: `boolean`
|
|
18
18
|
|
|
19
19
|
Whether to include the data in the log.
|
|
20
20
|
|
|
@@ -26,11 +26,11 @@ false
|
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
###
|
|
29
|
+
### includePolicy? {#includepolicy}
|
|
30
30
|
|
|
31
|
-
> `optional` **
|
|
31
|
+
> `optional` **includePolicy?**: `boolean`
|
|
32
32
|
|
|
33
|
-
Whether to include the
|
|
33
|
+
Whether to include the policy in the log.
|
|
34
34
|
|
|
35
35
|
#### Default
|
|
36
36
|
|
|
@@ -40,9 +40,9 @@ false
|
|
|
40
40
|
|
|
41
41
|
***
|
|
42
42
|
|
|
43
|
-
### includeDecisions?
|
|
43
|
+
### includeDecisions? {#includedecisions}
|
|
44
44
|
|
|
45
|
-
> `optional` **includeDecisions
|
|
45
|
+
> `optional` **includeDecisions?**: `boolean`
|
|
46
46
|
|
|
47
47
|
Whether to include the decisions in the log.
|
|
48
48
|
|
|
@@ -4,22 +4,16 @@ Options for the Logging Policy Execution Action.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### loggingComponentType?
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
8
|
|
|
9
|
-
> `optional` **loggingComponentType
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
10
|
|
|
11
11
|
The logging component for logging policy execution.
|
|
12
12
|
|
|
13
|
-
#### Default
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
logging
|
|
17
|
-
```
|
|
18
|
-
|
|
19
13
|
***
|
|
20
14
|
|
|
21
|
-
### config?
|
|
15
|
+
### config? {#config}
|
|
22
16
|
|
|
23
|
-
> `optional` **config
|
|
17
|
+
> `optional` **config?**: [`ILoggingPolicyExecutionActionConfig`](ILoggingPolicyExecutionActionConfig.md)
|
|
24
18
|
|
|
25
19
|
The configuration for the logging policy execution.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IPassThroughPolicyArbiterConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Pass Through Policy Arbiter.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The logging component for policy arbiter.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IPassThroughPolicyEnforcementProcessorConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Pass Through Policy Enforcement Processor.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The logging component for policy enforcement processor.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IPassThroughPolicyNegotiatorConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Pass Through Policy Negotiator.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The logging component for policy negotiator.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IPassThroughPolicyObligationEnforcerConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Pass Through Policy Obligation Enforcer.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### loggingComponentType? {#loggingcomponenttype}
|
|
8
|
+
|
|
9
|
+
> `optional` **loggingComponentType?**: `string`
|
|
10
|
+
|
|
11
|
+
The logging component for the policy obligation enforcer.
|