Debian Codegraph @

lib/3rdParty/composer/facile-it/php-openid-client/stubs/Jose/Component/Signature/JWSBuilder.php.stub

raw
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\Signature;
6
7 use Jose\Component\Core\AlgorithmManager;
8 use Jose\Component\Core\JWK;
9 use Jose\Component\Core\Util\KeyChecker;
10
11 class JWSBuilder
12 {
13 public function __construct(
14 AlgorithmManager $signatureAlgorithmManager
15 ) {
16 }
17
18 /**
19 * Returns the algorithm manager associated to the builder.
20 */
21 public function getSignatureAlgorithmManager(): AlgorithmManager
22 {
23 }
24
25 /**
26 * Reset the current data.
27 */
28 public function create(): self
29 {
30 }
31
32 /**
33 * Set the payload. This method will return a new JWSBuilder object.
34 */
35 public function withPayload(string $payload, bool $isPayloadDetached = false): self
36 {
37 }
38
39 /**
40 * Adds the information needed to compute the signature. This method will return a new JWSBuilder object.
41 *
42 * @psalm-param array{alg?: string, ...} $protectedHeader
43 * @psalm-param array{alg?: string, ...} $header
44 */
45 public function addSignature(JWK $signatureKey, array $protectedHeader, array $header = []): self
46 {
47 }
48
49 /**
50 * Computes all signatures and return the expected JWS object.
51 */
52 public function build(): JWS
53 {
54 }
55 }