File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace SimpleSAML \OpenID ;
6+
7+ use SimpleSAML \OpenID \ValueAbstracts \Factories \SignatureKeyPairBagFactory ;
8+ use SimpleSAML \OpenID \ValueAbstracts \Factories \SignatureKeyPairFactory ;
9+
10+ class ValueAbstracts
11+ {
12+ protected ?SignatureKeyPairFactory $ signatureKeyPairFactory = null ;
13+
14+ protected ?SignatureKeyPairBagFactory $ signatureKeyPairBagFactory = null ;
15+
16+
17+ public function __construct (
18+ protected readonly Jwk $ jwk = new Jwk (),
19+ ) {
20+ }
21+
22+
23+ public function jwk (): Jwk
24+ {
25+ return $ this ->jwk ;
26+ }
27+
28+
29+ public function signatureKeyPairFactory (): SignatureKeyPairFactory
30+ {
31+ return $ this ->signatureKeyPairFactory ??= new SignatureKeyPairFactory (
32+ $ this ->jwk (),
33+ );
34+ }
35+
36+
37+ public function signatureKeyPairBagFactory (): SignatureKeyPairBagFactory
38+ {
39+ return $ this ->signatureKeyPairBagFactory ??= new SignatureKeyPairBagFactory (
40+ $ this ->signatureKeyPairFactory (),
41+ );
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments