1 | <?php |
||
37 | final class PublicKey |
||
38 | { |
||
39 | /** |
||
40 | * |
||
41 | * @var CurveFp |
||
42 | */ |
||
43 | protected $curve; |
||
44 | |||
45 | /** |
||
46 | * |
||
47 | * @var GeneratorPoint |
||
48 | */ |
||
49 | protected $generator; |
||
50 | |||
51 | /** |
||
52 | * |
||
53 | * @var Point |
||
54 | */ |
||
55 | protected $point; |
||
56 | |||
57 | /** |
||
58 | * |
||
59 | * @var GmpMath |
||
60 | */ |
||
61 | protected $adapter; |
||
62 | |||
63 | /** |
||
64 | * Initialize a new instance. |
||
65 | * |
||
66 | * @param GmpMath $adapter |
||
67 | * @param GeneratorPoint $generator |
||
68 | * @param Point $point |
||
69 | * @throws \LogicException |
||
70 | * @throws \RuntimeException |
||
71 | */ |
||
72 | public function __construct(GmpMath $adapter, GeneratorPoint $generator, Point $point) |
||
87 | |||
88 | /** |
||
89 | * {@inheritDoc} |
||
90 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PublicKey::getCurve() |
||
91 | */ |
||
92 | public function getCurve() |
||
96 | |||
97 | /** |
||
98 | * {$inheritDoc} |
||
99 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PublicKey::getGenerator() |
||
100 | */ |
||
101 | public function getGenerator() |
||
105 | |||
106 | /** |
||
107 | * {@inheritDoc} |
||
108 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PublicKey::getPoint() |
||
109 | */ |
||
110 | public function getPoint() |
||
114 | } |
||
115 |