1 | <?php |
||
22 | class NSEC3PARAM implements RdataInterface |
||
23 | { |
||
24 | 1 | use RdataTrait; |
|
25 | |||
26 | const TYPE = 'NSEC3PARAM'; |
||
27 | const TYPE_CODE = 51; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $hashAlgorithm; |
||
33 | |||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | private $flags = 0; |
||
38 | |||
39 | /** |
||
40 | * @var int |
||
41 | */ |
||
42 | private $iterations; |
||
43 | |||
44 | /** |
||
45 | * @var string Binary encoded string |
||
46 | */ |
||
47 | private $salt; |
||
48 | |||
49 | 1 | public function getHashAlgorithm(): int |
|
53 | |||
54 | /** |
||
55 | * @throws \InvalidArgumentException |
||
56 | */ |
||
57 | 6 | public function setHashAlgorithm(int $hashAlgorithm): void |
|
64 | |||
65 | 1 | public function getFlags(): int |
|
69 | |||
70 | /** |
||
71 | * @throws \InvalidArgumentException |
||
72 | */ |
||
73 | 6 | public function setFlags(int $flags): void |
|
80 | |||
81 | 1 | public function getIterations(): int |
|
85 | |||
86 | 6 | public function setIterations(int $iterations): void |
|
93 | |||
94 | /** |
||
95 | * @return string Base16 string |
||
96 | */ |
||
97 | 1 | public function getSalt(): string |
|
101 | |||
102 | /** |
||
103 | * @param string $salt Hexadecimal string |
||
104 | */ |
||
105 | 6 | public function setSalt(string $salt): void |
|
112 | |||
113 | 2 | public function toText(): string |
|
117 | |||
118 | 1 | public function toWire(): string |
|
122 | |||
123 | 1 | public function fromText(string $text): void |
|
131 | |||
132 | 1 | public function fromWire(string $rdata, int &$offset = 0, ?int $rdLength = null): void |
|
147 | } |
||
148 |