1 | <?php |
||
7 | final class JsonFileSecretStorage implements SecretStorageInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var Shh |
||
11 | */ |
||
12 | private $shh; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $secretsFile; |
||
18 | |||
19 | public function __construct(Shh $shh, string $secretsFile) |
||
24 | |||
25 | /** |
||
26 | * @return array |
||
27 | */ |
||
28 | private function open(): array |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function store(string $key, string $value, bool $encrypt = true): void |
||
62 | |||
63 | public function has(string $key): bool |
||
67 | |||
68 | /** |
||
69 | * @inheritDoc |
||
70 | */ |
||
71 | public function get(string $key, bool $decrypt = true): ?string |
||
81 | |||
82 | /** |
||
83 | * @inheritDoc |
||
84 | */ |
||
85 | public function getKeys(): iterable |
||
89 | } |
||
90 |