blob: 01b0d09a578ae9aea52bed6d42b9eb3af80e3065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
namespace Studip\OAuth2;
use Psr\Container\ContainerInterface;
class SetupInformation
{
/** @var ContainerInterface */
private $container;
public function __construct(ContainerInterface $container)
{
$this->container = $container;
}
public function encryptionKey(): KeyInformation
{
return new KeyInformation($this->container->get('encryption_key'));
}
public function privateKey(): KeyInformation
{
return new KeyInformation($this->container->get('private_key'));
}
public function publicKey(): KeyInformation
{
return new KeyInformation($this->container->get('public_key'));
}
}
|