We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c69822 commit b64e3f9Copy full SHA for b64e3f9
src/ValueAbstracts/SignatureKeyPairBag.php
@@ -6,6 +6,7 @@
6
7
use SimpleSAML\OpenID\Algorithms\SignatureAlgorithmEnum;
8
use SimpleSAML\OpenID\Exceptions\OpenIdException;
9
+use SimpleSAML\OpenID\Jwk\JwkDecorator;
10
11
class SignatureKeyPairBag
12
{
@@ -108,4 +109,18 @@ public function getAllAlgorithmNamesUnique(): array
108
109
),
110
);
111
}
112
+
113
114
+ /**
115
+ * @return \SimpleSAML\OpenID\Jwk\JwkDecorator[]
116
+ */
117
+ public function getAllPublicKeys(): array
118
+ {
119
+ return array_values(
120
+ array_map(
121
+ fn(SignatureKeyPair $signatureKeyPair): JwkDecorator => $signatureKeyPair->getKeyPair()->getPublicKey(),
122
+ $this->getAll(),
123
+ ),
124
+ );
125
+ }
126
0 commit comments