1 | <?php namespace jwe\impl; |
||
21 | final class _ContentEncryptionKey implements Key { |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $alg; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $value; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $format; |
||
37 | |||
38 | /** |
||
39 | * @param string $alg |
||
40 | * @param string $format |
||
41 | * @param string $value |
||
42 | */ |
||
43 | public function __construct($alg, $format, $value){ |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getAlgorithm() |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getEncoded() |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getFormat() |
||
72 | |||
73 | /** |
||
74 | * @return int |
||
75 | */ |
||
76 | public function getBitLength() |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getStrippedEncoded(): string |
||
88 | } |