Zonemaster::LDNS::RR::RRSIG - Type RRSIG record
A subclass of Zonemaster::LDNS::RR, so it has all the methods of that class available in addition to the ones documented here.
Returns a string with the name of the RR type this signature covers.
Returns the algorithm number.
Returns the number of labels that was used to calculate the signature.
Returns the original TTL value.
Returns the expiration time, as a time_t.
Returns the inception time, as a time_t.
Returns the keytag.
Returns the signer name.
Returns the cryptographic signture in binary form.
- verify($rrset_ref, $key_ref)
Cryptographically verifies that the signature in this object matches the given RRset and at least one of the given keys.
$rrset_refshould be a reference to an array of RR objects, and
$key_refa reference to an array of Zonemaster::LDNS::RR::DNSKEY objects. This method simply returns a true or false value, depending on the result och the check.
- verify_str($rrset_ref, $key_ref)
Takes exactly the same arguments as verify() and performs the same action, but instead of true/false it returns a string describing the result. In the case of a successful result the message will be "All OK". For negative results, the string will describe the reason the verification failed.
- verify_time($rrset_ref, $key_ref, $time, $msg)
This is the XS method doing the work for the previous two methods.
$key_refare the same as for the other methods.
time_tvalue for which the validation should be made (for the previous two methods it is set to the current computer time).
$msgshould be a writable scalar, and the string message describing the result will be but in it. The return value from the method is true/false.