1 | <?php |
||
20 | class StorableJWK implements StorableJWKInterface |
||
21 | { |
||
22 | use Storable; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $parameters; |
||
28 | |||
29 | /** |
||
30 | * RotatableJWK constructor. |
||
31 | * |
||
32 | * @param string $filename |
||
33 | * @param array $parameters |
||
34 | */ |
||
35 | public function __construct($filename, array $parameters) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function getAll() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function get($key) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function has($key) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function thumbprint($hash_algorithm) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function toPublic() |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function jsonSerialize() |
||
88 | |||
89 | /** |
||
90 | * @return \Jose\Object\JWKInterface |
||
91 | */ |
||
92 | protected function getJWK() |
||
98 | |||
99 | protected function createNewObject() |
||
106 | |||
107 | /** |
||
108 | * @param array $file_content |
||
109 | * |
||
110 | * @return \JsonSerializable |
||
111 | */ |
||
112 | protected function createObjectFromFileContent(array $file_content) |
||
116 | |||
117 | |||
118 | } |
||
119 |