1 | <?php |
||
19 | use Jose\Object\JWKSetInterface; |
||
20 | use Jose\SignerInterface; |
||
21 | use OAuth2Framework\Bundle\Server\Service\MetadataBuilder; |
||
22 | use OAuth2Framework\Component\Server\Endpoint\Metadata\MetadataEndpoint; |
||
23 | use Psr\Http\Message\ServerRequestInterface; |
||
24 | |||
25 | class MetadataController implements MiddlewareInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var MetadataEndpoint |
||
29 | */ |
||
30 | private $metadataEndpoint; |
||
31 | |||
32 | /** |
||
33 | * MetadataController constructor. |
||
34 | * |
||
35 | * @param ResponseFactoryInterface $responseFactory |
||
36 | * @param MetadataBuilder $metadataBuilder |
||
37 | */ |
||
38 | public function __construct(ResponseFactoryInterface $responseFactory, MetadataBuilder $metadataBuilder) |
||
43 | |||
44 | /** |
||
45 | * @param SignerInterface $signer |
||
46 | * @param JWKSetInterface $signatureKeySet |
||
47 | * @param string $signatureAlgorithm |
||
48 | */ |
||
49 | public function enableSignedMetadata(SignerInterface $signer, string $signatureAlgorithm, JWKSetInterface $signatureKeySet) |
||
62 |