We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7ba46 commit ec6f595Copy full SHA for ec6f595
2 files changed
src/Config/Keys.php
@@ -6,7 +6,7 @@
6
use Lcobucci\JWT\Signer\Key\InMemory as Key;
7
use League\OAuth2\Server\CryptKey;
8
9
-class Keys
+class Keys implements KeysInterface
10
{
11
////////////////////////////// CLASS PROPERTIES \\\\\\\\\\\\\\\\\\\\\\\\\\\\
12
src/Config/KeysInterface.php
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+namespace Pdsinterop\Solid\Auth\Config;
4
5
+use Defuse\Crypto\Key as CryptoKey;
+use Lcobucci\JWT\Signer\Key\InMemory as Key;
+use League\OAuth2\Server\CryptKey;
+interface KeysInterface
+{
+ public function getEncryptionKey(): CryptoKey|string;
13
+ public function getPrivateKey(): CryptKey;
14
15
+ public function getPublicKey(): Key;
16
17
+ public function __construct(CryptKey $privateKey, Key $publicKey, CryptoKey|string $encryptionKey);
18
+}
0 commit comments