Skip to content

Commit d591eda

Browse files
committed
Update Federation
1 parent a30f97e commit d591eda

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

src/Federation.php

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function entityStatementFetcher(): EntityStatementFetcher
163163
return $this->entityStatementFetcher ??= new EntityStatementFetcher(
164164
$this->entityStatementFactory(),
165165
$this->artifactFetcher(),
166-
$this->maxCacheDurationDecorator,
166+
$this->maxCacheDurationDecorator(),
167167
$this->helpers(),
168168
$this->logger,
169169
);
@@ -186,7 +186,7 @@ public function trustChainFactory(): TrustChainFactory
186186
{
187187
return $this->trustChainFactory ??= new TrustChainFactory(
188188
$this->entityStatementFactory(),
189-
$this->timestampValidationLeewayDecorator,
189+
$this->timestampValidationLeewayDecorator(),
190190
$this->metadataPolicyResolver(),
191191
$this->metadataPolicyApplicator(),
192192
$this->helpers(),
@@ -200,7 +200,7 @@ public function trustChainResolver(): TrustChainResolver
200200
$this->entityStatementFetcher(),
201201
$this->trustChainFactory(),
202202
$this->trustChainBagFactory(),
203-
$this->maxCacheDurationDecorator,
203+
$this->maxCacheDurationDecorator(),
204204
$this->cacheDecorator,
205205
$this->logger,
206206
$this->maxTrustChainDepth,
@@ -215,7 +215,7 @@ public function entityStatementFactory(): EntityStatementFactory
215215
$this->jwsVerifierDecorator(),
216216
$this->jwksDecoratorFactory(),
217217
$this->jwsSerializerManagerDecorator(),
218-
$this->timestampValidationLeewayDecorator,
218+
$this->timestampValidationLeewayDecorator(),
219219
$this->helpers(),
220220
$this->claimFactory(),
221221
);
@@ -229,7 +229,7 @@ public function requestObjectFactory(): RequestObjectFactory
229229
$this->jwsVerifierDecorator(),
230230
$this->jwksDecoratorFactory(),
231231
$this->jwsSerializerManagerDecorator(),
232-
$this->timestampValidationLeewayDecorator,
232+
$this->timestampValidationLeewayDecorator(),
233233
$this->helpers(),
234234
$this->claimFactory(),
235235
);
@@ -243,7 +243,7 @@ public function trustMarkFactory(): TrustMarkFactory
243243
$this->jwsVerifierDecorator(),
244244
$this->jwksDecoratorFactory(),
245245
$this->jwsSerializerManagerDecorator(),
246-
$this->timestampValidationLeewayDecorator,
246+
$this->timestampValidationLeewayDecorator(),
247247
$this->helpers(),
248248
$this->claimFactory(),
249249
);
@@ -257,7 +257,7 @@ public function trustMarkDelegationFactory(): TrustMarkDelegationFactory
257257
$this->jwsVerifierDecorator(),
258258
$this->jwksDecoratorFactory(),
259259
$this->jwsSerializerManagerDecorator(),
260-
$this->timestampValidationLeewayDecorator,
260+
$this->timestampValidationLeewayDecorator(),
261261
$this->helpers(),
262262
$this->claimFactory(),
263263
);
@@ -271,7 +271,7 @@ public function trustMarkStatusResponseFactory(): TrustMarkStatusResponseFactory
271271
$this->jwsVerifierDecorator(),
272272
$this->jwksDecoratorFactory(),
273273
$this->jwsSerializerManagerDecorator(),
274-
$this->timestampValidationLeewayDecorator,
274+
$this->timestampValidationLeewayDecorator(),
275275
$this->helpers(),
276276
$this->claimFactory(),
277277
);
@@ -283,7 +283,7 @@ public function trustMarkStatusResponseFetcher(): TrustMarkStatusResponseFetcher
283283
return $this->trustMarkStatusResponseFetcher ??= new TrustMarkStatusResponseFetcher(
284284
$this->trustMarkStatusResponseFactory(),
285285
$this->artifactFetcher(),
286-
$this->maxCacheDurationDecorator,
286+
$this->maxCacheDurationDecorator(),
287287
$this->helpers(),
288288
$this->logger,
289289
);
@@ -297,10 +297,10 @@ public function trustMarkValidator(): TrustMarkValidator
297297
$this->trustMarkFactory(),
298298
$this->trustMarkDelegationFactory(),
299299
$this->trustMarkStatusResponseFetcher(),
300-
$this->maxCacheDurationDecorator,
300+
$this->maxCacheDurationDecorator(),
301301
$this->cacheDecorator(),
302302
$this->logger,
303-
$this->defaultTrustMarkStatusEndpointUsagePolicyEnum,
303+
$this->defaultTrustMarkStatusEndpointUsagePolicyEnum(),
304304
);
305305
}
306306

@@ -310,7 +310,7 @@ public function trustMarkFetcher(): TrustMarkFetcher
310310
return $this->trustMarkFetcher ??= new TrustMarkFetcher(
311311
$this->trustMarkFactory(),
312312
$this->artifactFetcher(),
313-
$this->maxCacheDurationDecorator,
313+
$this->maxCacheDurationDecorator(),
314314
$this->helpers(),
315315
$this->logger,
316316
);
@@ -443,8 +443,15 @@ public function claimFactory(): ClaimFactory
443443
);
444444
}
445445

446+
446447
public function timestampValidationLeewayDecorator(): DateIntervalDecorator
447448
{
448449
return $this->timestampValidationLeewayDecorator;
449450
}
451+
452+
453+
public function defaultTrustMarkStatusEndpointUsagePolicyEnum(): TrustMarkStatusEndpointUsagePolicyEnum
454+
{
455+
return $this->defaultTrustMarkStatusEndpointUsagePolicyEnum;
456+
}
450457
}

0 commit comments

Comments
 (0)