1 | <?php namespace security; |
||
20 | final class SymmetricSharedKey |
||
21 | implements PrivateKey, SharedKey { |
||
22 | |||
23 | /** |
||
24 | * @param string $secret |
||
25 | */ |
||
26 | public function __construct($secret){ |
||
29 | |||
30 | private $secret = null; |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getAlgorithm() |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getEncoded() |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getFormat() |
||
55 | |||
56 | /** |
||
57 | * @return int |
||
58 | */ |
||
59 | public function getBitLength() |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getSecret() |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getStrippedEncoded(): string |
||
79 | } |