1 | <?php |
||
11 | class ClaimBuilder implements ClaimBuilderInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $claim = []; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function issuedBy($issuer) |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function relatedTo($subject) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function intendedFor($audience) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function expireAt(\DateTimeImmutable $expire) |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function canOnlyBeUsedAfter(\DateTimeImmutable $notBefore) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function issuedAt(\DateTimeImmutable $issuedAt) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function identifiedBy($id) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function getValue() |
||
96 | |||
97 | /** |
||
98 | * Aggregate JWT claims list by pairing supplied claim into it's value. |
||
99 | * |
||
100 | * @param string $name |
||
101 | * @param mixed $value |
||
102 | * @return this |
||
103 | */ |
||
104 | private function collectClaim($name, $value) |
||
114 | } |
||
115 |