Skip to content

Commit ec6f595

Browse files
committed
Add interface for Config\Keys.
1 parent dd7ba46 commit ec6f595

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

src/Config/Keys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Lcobucci\JWT\Signer\Key\InMemory as Key;
77
use League\OAuth2\Server\CryptKey;
88

9-
class Keys
9+
class Keys implements KeysInterface
1010
{
1111
////////////////////////////// CLASS PROPERTIES \\\\\\\\\\\\\\\\\\\\\\\\\\\\
1212

src/Config/KeysInterface.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Pdsinterop\Solid\Auth\Config;
4+
5+
use Defuse\Crypto\Key as CryptoKey;
6+
use Lcobucci\JWT\Signer\Key\InMemory as Key;
7+
use League\OAuth2\Server\CryptKey;
8+
9+
interface KeysInterface
10+
{
11+
public function getEncryptionKey(): CryptoKey|string;
12+
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

Comments
 (0)