| 1 | <?php |
||
| 17 | class DsRdata implements RdataInterface |
||
| 18 | {
|
||
| 19 | use RdataTrait; |
||
| 20 | |||
| 21 | const TYPE = 'DS'; |
||
| 22 | |||
| 23 | const DIGEST_SHA1 = 1; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | private $keyTag; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The Algorithm field lists the algorithm number of the DNSKEY RR |
||
| 32 | * referred to by the DS record. |
||
| 33 | * {@link https://tools.ietf.org/html/rfc4034#section-5.1.2}
|
||
| 34 | * |
||
| 35 | * @var int |
||
| 36 | */ |
||
| 37 | private $algorithm; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var int |
||
| 41 | */ |
||
| 42 | private $digestType = self::DIGEST_SHA1; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | private $digest; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | public function getKeyTag() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param int $keyTag |
||
| 59 | */ |
||
| 60 | 3 | public function setKeyTag($keyTag) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return int |
||
| 67 | */ |
||
| 68 | public function getAlgorithm() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param int $algorithm |
||
| 75 | */ |
||
| 76 | 3 | public function setAlgorithm($algorithm) |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @return int |
||
| 83 | */ |
||
| 84 | public function getDigestType() |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @param int $digestType |
||
| 91 | */ |
||
| 92 | 3 | public function setDigestType($digestType) |
|
| 96 | |||
| 97 | /** |
||
| 98 | * @return string |
||
| 99 | */ |
||
| 100 | public function getDigest() |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @param string $digest |
||
| 107 | */ |
||
| 108 | 3 | public function setDigest($digest) |
|
| 112 | |||
| 113 | /** |
||
| 114 | * {@inheritdoc}
|
||
| 115 | */ |
||
| 116 | 3 | public function output() |
|
| 126 | } |